Hi bakers! :-)
I'm pretty surprised I haven't come across this one before.
The following URL generated by the pagination helper causes a 400 Bad
Request response:
http://localhost/projects/jisc_pims_19/outputs/index/page:2/find:a%
Remove the '%' from the URL and its all fine
If you change
Sindey, Marcelo is right. The default action for a form is to post to
the $controller-add() method. You have to override it for other
actions
On Feb 18, 12:00 am, Sidney aussiealthomp...@gmail.com wrote:
I think the default action is to self-post i.e. the form post/get goes
to the same
I'd start with a blank (non-cake) php page and try and get that
working to make sure your odbc driver is set up correctly.
Haven't used ODBC with cake but I can tell you the Easysoft stuff is
very good (caveat: I used to work at Easysoft :-) )
On Feb 12, 4:37 pm, Stinkbug justink...@gmail.com
You could always add your own wrappers to your AppModel :-)
On Feb 16, 3:52 pm, leo ponton@gmail.com wrote:
I could never remember the order of the many many
arguments to find and had to look them up at least once a day. Putting
them info an associative array helps me a lot because I
Hi All :-)
How do you trap errors that may be the result of a custom query? For
example:
$results = $model-query($sql);
In my case, some of the custom sql queries creates such a large
dataset that the script exceeds the memory allocated to php.
I would like to catch these errors and present
Conditional comments are the way forward. The user agent can be
spoofed.
On Feb 13, 11:37 am, Marcelo Andrade mfandr...@gmail.com wrote:
On Fri, Feb 13, 2009 at 7:17 AM, mona poojapinj...@gmail.com wrote:
hi viewers
i have one serious problem i have to set the page layout in such a way
Another vote here for Chaw needing a download link!
On Feb 6, 7:43 pm, Matt Curry m...@mcurry.net wrote:
The Git link Brandon referenced does work once you get everything
setup. I did it yesterday so I could download the API Plugin. It
would be nice if TheChaw had a download link like
I think the Chaw repository is an excellent idea.
Are there plans to include a download link?
If don't have SVN or GIT set up, how do I download projects?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
I've been using MySQL Workbench. Does everything I need.
http://dev.mysql.com/workbench/
On Feb 4, 7:13 am, Wayne Fay wayne...@gmail.com wrote:
I was wondering if anyone has any recommendations for a database
design tool. I was hoping to use an OSS product.
I generally use Squirrel SQL,
Request action isn't *that* bad ;-)
In this case request action should be fine as you wont be calling it
very often (as opposed to say from in an element that is displayed on
every page).
That said, Graham's suggestion is a better solution.
Note, to get the best performance from requestAction
Found the solution. Documenting it here in case anyone else stumbles
into this issue:
You need to use an alternative format to specify the model/field
names:
? echo $form-dateTime([a][b][c][d]) ?
Thanks to the person on IRC who hinted at this solution :-)
On Jan 24, 4:17 pm, RichardAtHome
cached by the browser) would outway the overhead of
using an additional helper.
On Jan 27, 2:58 pm, Gonzalo Servat gser...@gmail.com wrote:
On Tue, Jan 27, 2009 at 12:51 PM, RichardAtHome
richardath...@gmail.comwrote:
Try it from a layout.
...but your question is about calling it from
://search.twitter.com/search?q=%23cakephp
On Jan 27, 8:23 am, RichardAtHome richardath...@gmail.com wrote:
There's also a #cakephp hashtag:
http://hashtags.org/search?query=cakephpsubmit=Search
On Jan 26, 5:42 pm, gerhardsletten gerhardslet...@gmail.com wrote:
http://www.twitter.com
Did you reboot the web server yet. This sounds exactly like the issue
I was having.
Also, check your web server error log files just in case.
On Jan 27, 7:56 am, leo ponton@gmail.com wrote:
I tried doing phpinfo() from the index.php file and nothing was
displayed
Doesn't this ring any
There's also a #cakephp hashtag:
http://hashtags.org/search?query=cakephpsubmit=Search
On Jan 26, 5:42 pm, gerhardsletten gerhardslet...@gmail.com wrote:
http://www.twitter.com/gerhardsletten
A salty mix of cake, ez publish, triathlon, food and live. Code stuff
mostly in english, but some
Try it from a layout.
...but your question is about calling it from inside an element :-S
... or do you mean an element that's linked from a layout and not a
view?
On Jan 26, 2:19 pm, Gonzalo Servat gser...@gmail.com wrote:
On Mon, Jan 26, 2009 at 12:17 PM, RichardAtHome
richardath
or you could put the function in your AppController
On Jan 27, 2:17 pm, leo ponton@gmail.com wrote:
I'm not suggesting this is the correct way to do it, but I would put
those methods in the model definitions to which they relate. Then they
are accessible from any controller that 'uses'
You also need to delete the contents off the app/tmp directory. Leave
the file structure intact and just remove any files.
This is rapidly becoming my stock answer :-S
On Jan 26, 5:49 am, Paolo Stancato paolodo...@gmail.com wrote:
Find .htaccess files (there are two) and add RewriteBase
$this-Event-find('all',array(
'conditions' =array(
'event_category_id'=$catId,
'DATE(Event.event_date) getdate()'
),
'order'=array('Event.event_date ASC',
'Event.event_time ASC'
)
) ) ;
On Jan 26, 9:38 am, Martin Westin martin.westin...@gmail.com wrote:
There are lots of goodies you can use
Syntax should be:
echo $html-css( 'right_column', array( 'media' = 'screen' ), null,
false );
On Jan 24, 6:45 pm, Gonzalo Servat gser...@gmail.com wrote:
Hi All,
I never had the need to do this, but I've come across a situation where it
comes in handy. I'd like to add a stylesheet for
Might be worth re-starting the (web) server. It fixed a 500 error I
was getting a while back. Been fine every since (even after uploading
source updates).
On Jan 26, 1:38 pm, inVINCable invinceable...@gmail.com wrote:
Hey,
Ok, I found both of the .htacess files and added RewriteBase /myapp
wrote:
On Mon, Jan 26, 2009 at 9:24 AM, RichardAtHome richardath...@gmail.comwrote:
Syntax should be:
echo $html-css( 'right_column', array( 'media' = 'screen' ), null,
false );
Not if you're using the last parameter as false. It just adds it to an
array which later gets printed
I think you'll need to post some code before anyone can help you with
this...
On Jan 27, 12:49 am, Mahesh Sutar maheshsuta...@gmail.com wrote:
I am using ajax in ctp page to populate table.
number of rows I am reading from text box and passing to view action
I am able to get table structure,
I'd wager its not your code, but CakePHP's security settings. In app/
config/core.php change
Configure::write('Security.level', 'high');
To
Configure::write('Security.level', 'low');
and see if that clears up the problem.
On Jan 27, 2:14 am, MichTex bill.cav...@gmail.com wrote:
I have been
Hate to do this, but... Bump!
Is this a bug in CakePHP (I'd be surprised if it was as I can't fault
the rest of CakePHP's code) or expected behaviour?
On Jan 23, 3:39 pm, RichardAtHome richardath...@gmail.com wrote:
Hi all
I've hit a snag I'm hoping someone can help with. Perhaps one
Hi all
I've hit a snag I'm hoping someone can help with. Perhaps one of the
devs can explain this behaviour?
? echo $form-dateTime(a.b.c) ?
generates (as expected):
select name=data[a][b][c][day] id=abCDay...
whereas:
? echo $form-dateTime(a.b.c.d) ?
generates:
select name=data[a] id=a...
You will need to clear our the files in your app/tmp directory. Leave
the directories intact, just remove the files.
On Jan 23, 1:42 pm, Mono sirmonit...@gmail.com wrote:
Hello!!
My Cake-App works perfect on my localhost, but after i uploaded it i
become the error msg:
Warning: Failed
) AS tag_count
)));
Here's an example of using the
finderQuery:http://groups.google.com/group/cake-php/msg/c10840be78a34df0
On Jan 17, 12:55 am, RichardAtHome richardath...@gmail.com wrote:
Given the following Model relations:
article -- HABTM (articles_tags
I couldn't see the point in a separate tags table
What about 2 articles that share the same tags? You run the risk of
tagging either with one or 1 (for example) or CakePHP,
cakephp, Cakephp, cakePHP...
There's an awful lot of processing happening in your foreach loop.
What happens when you get
this helps
2009/1/17 RichardAtHome richardath...@gmail.com
Given the following Model relations:
article -- HABTM (articles_tags) -- tag
How do I fetch back a list of Tags with the count of associated
Articles?
I've tried (in the Tag Model):
$data = $this-find(all, array
The simplest solution is to copy the code from the add method of the
controller to the index method.
Not looked at the blog code for quite a while, but it would go
something like this:
function index() {
if ($this-data) {
// add form submitted
$this-Model-create();
if
Are you including the Model.id field in your edit form view?
?php echo $form-create(Model); ?
?php echo $form-input(Model.id); ? -- important line
?php ... rest of fields in your form ?
?php echo $form-end(Submit); ?
On Jan 16, 4:37 pm, mona poojapinj...@gmail.com wrote:
Here is my edit
It's for this very reason I keep championing the case to have ALL
source code on a web page to be presented in a plain text textarea!
And don't get me started on 'smart quotes'! ;-)
On Jan 16, 8:49 pm, clarkphp clark.evere...@gmail.com wrote:
Figured it out, with the help of a sharper pair of
Here's how I break it down:
1) Anything thats on *every* page goes in the layout
2) Anything thats repeated on more than one page but not on all, goes
in an element (and imported into the view with echo $this-element
(foo))
3) Anything that's unique to a page goes in the view.
So, as an
Given the following Model relations:
article -- HABTM (articles_tags) -- tag
How do I fetch back a list of Tags with the count of associated
Articles?
I've tried (in the Tag Model):
$data = $this-find(all, array(
fields=array(
Just come across this when I renamed my web root folder.
I think this is to do with me using APC and isn't a CakePHP issue (now
that you have deleted the cache).
Restart Apache. This will clear the APC cache.
On Sep 26, 2:17 pm, Eemerge [EMAIL PROTECTED] wrote:
just cleared them, same thing.
or... redirect to another page (a thank you page perhaps presuming
this is a contact form) after you have sent the mail.
On Sep 26, 8:42 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Looking at some of the web-mail apps I use many seem to handle this
using a combination of very clear visual
or store the id in the session?
On Sep 26, 12:17 pm, Daniel Süpke [EMAIL PROTECTED] wrote:
Thank you very much, I'll have a look at that!
Best Regards,
Daniel Süpke
[EMAIL PROTECTED] wrote:
I haven't done exactly that but I think you could set all urls and
links using the array
$this-Auth-deny('admin', 'accnt', 'faq'); // does not work
This doesn't work because the 'action' for all views in the pages
controller is 'display' not 'admin', 'accnt'
$this-Auth-deny(display) would work, but it would deny ALL views
handled by the pages controller.
Your workaround is a
If this is a once only import (populate initial db), I'd stick to
using mysql's data import command line tool and move onto something
more fun.
If it's something that needs to be run repeatedly e.g. a user uploads
a file that needs to be imported then write a custom method in the
Model that uses
To be honest, you would be much better if you created your own.
All the components are there already in Cake, you just have to learn
how to glue them together.
If you don't, you'll come unstuck when it comes to something a little
more challenging.
Happy Baking!
On Sep 23, 11:24 am,
Also worth noting: A controller can have multiple Models.
Which model would $this-find() use?
On Sep 23, 12:28 pm, dr. Hannibal Lecter [EMAIL PROTECTED]
wrote:
Well, calling find() in a controller is not a violation, but not the
best practice if overused.
Of course, calling find() from a
I'm trying to create a bookmarkable search results page. I have the
following form so I am using 'get' search form:
?php echo $form-create(Event, array(action=search,
type=get)) ?
?php echo $form-input(Event.start_date) ?
?php echo $form-end(search) ?
When the form is posted, the URL looks like
Note: this groups post:
http://groups.google.com/group/cake-php/browse_thread/thread/c05c03e397549dde/57f2e4d6b3f7fb0e?lnk=gstq=form+get+date#57f2e4d6b3f7fb0e
Sounds like the same problem, but has no replies...
On Sep 22, 2:41 pm, RichardAtHome [EMAIL PROTECTED] wrote:
I'm trying to create
Note:
div class=labelSomething/div
div class=inputfieldinput type=text //div
div class=labelSomething2/div
div class=inputfieldinput type=text //div
..will create an invalid form: You MUST have a label linked to every
input element.
Here's a snippet from my own cake.generic.css:
/*
*
I suspect you are trying to SMTP to gmail or something similar.
CakePHP doesn't support the encyption required to connect to these
types of SMTP server.
The Bakery has some useful articles for using 3rd party mail
components that support encrypted SMTP
On Sep 22, 10:35 am, Predominant [EMAIL
Aye, I thought of that but it feels a bit 'messy' :-(
On Sep 22, 3:23 pm, Daniel Hofstetter [EMAIL PROTECTED] wrote:
Hi Richard,
I'm trying to create a bookmarkable search results page. I have the
following form so I am using 'get' search form:
?php echo $form-create(Event,
Have you checked out Easysoft's SQLEngine? It allows heterogeneous
joins across databases and even across different RDBMs?
As an alternative, you could always use $this-model-query(); and
enter the SQL by hand. You'll loose a lot of cakey goodness though :-(
On Sep 22, 3:19 pm, Bookrock [EMAIL
You can set up your models to use any non-cake table structures and
naming styles.
See http://book.cakephp.org/view/71/Model-Attributes for more details.
On Sep 18, 9:31 am, Laurent Bois [EMAIL PROTECTED] wrote:
Hi
We currently have a data model with table names that don't follow
CakePHP
In exactly the same way :-)
You join table (products_sizes) would hold the stock field
id (PK)
product_id (FK)
size_id (FK)
stock (INT)
On Sep 17, 9:27 pm, VitillO [EMAIL PROTECTED] wrote:
Hi, i have the following structure for a tshirt online store:
Product HABTM Size
Size HABTM Product
'conditions' = array('Book.title LIKE' = 'A%'),
The condition has been moved to the left hand side as a security
measure.
On Sep 17, 8:14 am, jittos [EMAIL PROTECTED] wrote:
i am a new comer in cakephp.. i am going through some tutorials in
cakephp.. i found one problem i want to write
Which accessibilty checkpoint requires you to have a title attribute
on every hyperlink?
The nearest I can find is checkpoint 13.1:
http://www.w3.org/TR/WCAG10/wai-pageauth.html#tech-meaningful-links
13.1 Clearly identify the target of each link. [Priority 2]
Link text should be meaningful
I'm relatively close by in Sheffield.
On Sep 10, 11:55 pm, simonb [EMAIL PROTECTED] wrote:
Anyone in the dewsbury, England, West Yorkshire area who has used cake?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Probably in your OptionsController?. Check out the function that
matches the name of your action,
ie,
http://www.example.com/options/
or
http://www.example.com/options/index
can be found in your OptionsController (/app/controllers/
options_controller.php)
and look for the function index()
I'll answer b)
/app/views/layouts/default.ctp:
html
head
title?php echo $title_for_layout; ?/title
/head
body
div id='header'
header markup goes here
/div
div id='menu'
menu markup goes here
/div
div class='content'
?php echo $content_for_layout; ?
/div
div id='footer'
markup for footer
/div
First off read this: http://en.wikipedia.org/wiki/Example.com
Example.com is a test domain that you cannot use ;-)
On Sep 10, 4:09 am, Jerry Ross [EMAIL PROTECTED] wrote:
Ooopps! It was a false positive. What I actually accidentally got up and
running washttp://myexample.com
Post your query code :-)
On Sep 10, 3:17 pm, krzysztofor [EMAIL PROTECTED] wrote:
Hello everybody. I'm begginer with CakePHP. The MySQL query is
genereting in a wrong way:
Query:
SELECT `Option`.`id`, `Option`.`menu_id`, `Option`.`parent_id`,
`Option`.`page_id`, `Option`.`order`,
I'd also like this info. XDebug crashes my apache (on windows) too :-(
On Sep 9, 5:42 am, Dianne van Dulken [EMAIL PROTECTED] wrote:
Hi,
I was just wondering what profiler everyone else was using. I'm
having trouble finding one that will work with my cakephp setup.
Xdebug causes my
What David said.
You have to add your conditions to the paginate call.
Check out the google groups FAQ: http://groups.google.com/group/cake-php/web/faq
Scroll down to: How to add paginate support for custom queries?
On Sep 9, 9:13 am, David C. Zentgraf [EMAIL PROTECTED] wrote:
First value for auto_increment id in mysql == 1
Unless you tell it differently. You can have an autoincrementing field
that starts at 21 and increments in 6's if you like :-)
On Sep 9, 12:20 pm, Adam Royle [EMAIL PROTECTED] wrote:
It is intended functionality. First value for auto_increment
if every employee have to spend months learning this new platform then , must
as well code directly in PHP !
If you don't want to learn a (new) framework, don't.
A couple of months learning CakePHP will pay itself back in no time
due to increased productivity ;-)
On Sep 8, 6:29 am, James
Using CakePHP 1.2.0.7296 RC2
I've been having a dabble with the built in support for themes
( http://book.cakephp.org/view/488/Themes )
I've set up a theme using the instructions in the CakePHP docs above
and updated AppModel to use themes:
class AppController extends Controller {
var
You can find a complete posting history on your google groups profile:
http://groups.google.com/groups/profile?myprofile
On Sep 6, 11:40 pm, xfh [EMAIL PROTECTED] wrote:
how can I see all the postings I ever posted in this user group ? If I
search this group with my user name only 2 of some
More info please :-)
On Aug 31, 3:50 pm, assaggaf [EMAIL PROTECTED] wrote:
i wanna to know how to make event for simple input
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to
bump?
On Aug 24, 1:52 pm, RichardAtHome [EMAIL PROTECTED] wrote:
Also (may be related), in the element, why doesn't the following work?
?php
echo $html-css(array(
element.site_search
), null, array(), false);
?
(the CSS file isn't being linked in the head)
It works if the last
CakePHP is very clever, but it doesn't have a mind reading module
(yet).
Give us some details please :-)
On Aug 30, 12:04 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I read the manual and the ibm code and they are the same. How did you
solve the problem ?
are
stored in a different location.
I get a similar problem when I try an embed a flash application too.
How do I remove index.php from the urls on IIS?
On Aug 26, 5:23 pm, RichardAtHome [EMAIL PROTECTED] wrote:
After a bit of struggling, I've managed to get a CakePHP app running
on IIS.
I've
A CakePHP Model is just a PHP class. You can still use all of PHP's
class abilities.
for example:
class MyModel extends AppModel {
var $myCustomPropery = w00t!;
}
in controller:
echo $this-MyModel-myCustomProperty;
On Aug 28, 2:19 pm, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:
I
Just my two cents: CakePHP is fast enough for me :-)
That's not to say you shouldn't optimize for speed at some point in
the future. I just mean, it shouldn't be a priority.
Keep doing what your doing Cake dev's. Cake hasn't become one of the
most popular PHP frameworks because of its speed ;-)
The automagic fields should be called created and modified (not
updated). You don't need to do anything else.
On Aug 27, 8:29 am, MarcS [EMAIL PROTECTED] wrote:
Hi,
I just noticed that my 'updated' field won't update when I update
data.
I tried around for a while and then noticed that it
What tram said... change the field to an Int. Mysql tinyint datatype
has traditionally been used to store boolean data as MySQL doesn't
have a boolean datatype.
Alternatively, use a 1 byte char field.
Or change your options to be
null = Pending (the database default)
0 = Disapprove
1 = Approve
This is how Cake does it in the scaffold home page:
?php
if (isset($filePresent)):
uses('model' . DS . 'connection_manager');
$db = ConnectionManager::getInstance();
$connected = $db-getDataSource('default');
?
p
?php
if ($connected-isConnected()):
You may not think it now but your form IS related to a model ;-)
See Jonathan snooks example of a contact form:
http://snook.ca/archives/cakephp/contact_form_cakephp/
Jonathan creates a tableless model and defines the schema by hand.
That way you get all the benefit of cake's helpers
@wisecounselor
never mind, sorry to bother you, knew this was a waste of time
Um, AD7six answered your question later on in his post. That is why he
asked you if you'd continued reading...
On Aug 25, 7:49 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
never mind, sorry to bother you, knew
I had exactly this issue before but setting the security setting from
High to Medium fixed it for me.
Check your httpd error logs for any warnings about missing files/
images etc.
On Aug 27, 11:23 am, AussieFreelancer
[EMAIL PROTECTED] wrote:
ok, so no whitespace, but still not sure what is
Have you added the code to your view to display the error?
http://book.cakephp.org/view/564/displaying-auth-error-messages
On Aug 27, 10:22 am, luigi7up [EMAIL PROTECTED] wrote:
My
$this-Auth-loginError ='Invalid username or password';
won't show on login.ctp view
This is what I have in
in the field.
If I don't do that cake will not fill the update field with a new
value but will use the value that is is the model's data array
On Wed, Aug 27, 2008 at 10:58 AM, RichardAtHome [EMAIL PROTECTED] wrote:
The automagic fields should be called created and modified (not
updated
Sounds like the Auth component is redirecting you away from a
protected page, to another protected page - hence the loop.
In your Users controller do you have a login action?
On Aug 26, 9:19 am, luigi7up [EMAIL PROTECTED] wrote:
I'll try this. I read about this but I thought they were talking
After a bit of struggling, I've managed to get a CakePHP app running
on IIS.
I've running it without mod_rewrite so I followed the instructions in
core.php and removed .htaccess files and uncommented the line:
Configure::write('App.baseUrl', env('SCRIPT_NAME'));
I've installed my cake
I'd do it this way round:
parent::beforeFilter();
$this-Auth-allow(array('display'));
So the controllers can override settings in AppController
On Aug 24, 8:44 am, tekomp [EMAIL PROTECTED] wrote:
Thanks Sam. Got it to work after realizing that display is a built-
in action
Nothing to add apart from props to Rafael for an excellent answer.
On Aug 23, 2:05 am, Rafael Bandeira aka rafaelbandeira3
[EMAIL PROTECTED] wrote:
Oh, I almost slept, you should try to more clear and less verborragic,
so many explanation just messed up things more and more...
And you should
I have a simple element:
site_search.ctp:
?php echo $form-create(Search) ?
?php echo $form-inputs() ?
?php echo $form-end(Search) ?
Model Search is a tableless model which I manually create the schema
for:
search.php:
class Search extends AppModel {
var $useTable = false;
var
.
On Aug 24, 11:27 am, RichardAtHome [EMAIL PROTECTED] wrote:
I have a simple element:
site_search.ctp:
?php echo $form-create(Search) ?
?php echo $form-inputs() ?
?php echo $form-end(Search) ?
Model Search is a tableless model which I manually create the schema
for:
search.php:
class Search
A quick bit of jQuery:
$(#content form:first div.error:first input:first).focus();
Will focus the first errored input field on the first form in the
#content div.
It will fail silently if the first input element on the forum is not a
input control (a textarea for example).
[EMAIL PROTECTED]
Typo:
It will fail silently if the first errored input element on the form
is not a
input control (a textarea for example).
Might be possible to expand the rule to include other input element
types...
On Aug 24, 10:14 pm, RichardAtHome [EMAIL PROTECTED] wrote:
A quick bit of jQuery
$contacts = $this-Contact-find('first',
array(
'conditions' =
array('Contact.jobType' = 'main)
)
);
Note the 'first' parameter.
On Aug 22, 12:40 am, eagle [EMAIL PROTECTED] wrote:
You need to combine them both into 1 hasMany array:
var $hasMany = array(
'Childclass1' = array(
'className' = 'Childclass1'
),
'Childclass2' = array(
'className' = 'Childclass2'
)
);
On Aug 22, 12:43 am, robert123 [EMAIL PROTECTED] wrote:
i have parent model, it has two
In a nutshell:
Auth tells you who they are
ACL tells you what they can do once you know who they are
On Aug 21, 10:01 am, Penfold [EMAIL PROTECTED] wrote:
Hi cem,
have a look at
http://bakery.cakephp.org/articles/view/authext-a-small-auth-extensio...
this is a good out the box acl/auth
What Fahmi said.
with
echo $this-renderElement('post_element', $post);
You are creating a variable in the element called $post_element (with
the value of $post)
The only reason its working for you at the moment is that you have
already created a variable in the view called $post:
I think the 1000 was for illustration only.
I'd run a few quick benchmarks to see what the real difference between
1 insert with 1000 values() and 1000 queries would be. I'm betting it
wont be much...
On Aug 20, 11:04 pm, teknoid [EMAIL PROTECTED] wrote:
AFAIK, the syntax you are proposing is
Dunno about 'best', but this works:
In your view (search.ctp)
?php echo $form-create(Model, array(action=search,
type=get) ?
?php echo $form-input(search_for) ?
?php echo $form-end(Search) ?
?php foreach($results as $result) : ?
... output your result here
?php endif; ?
In your controller:
Did you reboot apache after you made changes to httpd.conf?
And, btw, Cake with Apache PHP on Vista is entirely possible - I'm
doing it right now :-)
On Aug 19, 7:49 am, giulio [EMAIL PROTECTED] wrote:
Hi,
I'm new of cake php.
I'm trying to install cakephp in windows vista, i downloaded
Assuming you are using Apache 2.2:
In apache.conf
uncomment this line:
LoadModule rewrite_module modules/mod_rewrite.so
This will enable mod_rewrite
You then need to allow cakephp .htaccess file to take over control of
your webroot:
In your Directory section for your webroot folder (mine is
The $this-Auth-reload() solution looks like a winner to me.
No unnecessary database reads, and you can keep the Auth user up to
date in responce to changes made by the user.
Thanks for all the great feedback folks :-)
--~--~-~--~~~---~--~~
You received this
Folder?
On Jul 17, 2:53 pm, Jonathan Snook [EMAIL PROTECTED] wrote:
This wasn't easy to track down but apparently there are 5 reserved
class names in PHP:
__PHP_Incomplete_Class, stdClass, exception, php_user_filter and.
Directory!!
http://ca3.php.net/manual/en/reserved.classes.php
You can save yourself a *lot* of heartache with this issue by leaving
off the closing ? in your php files :-)
--- snip ---
?php
class TestController extends AppController {
function index() {
}
}
---end snip---
is enough, the closing ? is optional
On Jul 17, 2:20 pm, haj [EMAIL PROTECTED]
Try putting some data in your groups table. Cake will change the
textbox to a drop down select list.
On Jul 15, 10:35 pm, Renan Gonçalves [EMAIL PROTECTED] wrote:
Recognize relationships based on InnoDB relationships is planned to CakePHP
2.0.https://trac.cakephp.org/wiki/Proposals/2.0ToDoList
Also, you can manually add the html tags and not rely on the helper.
That said, the helper is *very* flexible and can accommodate a lot of
customisations :-)
On Jul 15, 12:33 pm, Dardo Sordi Bogado [EMAIL PROTECTED]
wrote:
HtmlHelper::tags could be a posibility.
On Tue, Jul 15, 2008 at 12:20
are required less often,
but the security issue alone is enough to warant a refresh on every
page. A quick read of the database is hardly going to kill the system.
On Jul 14, 2:50 am, Jonathan Snook [EMAIL PROTECTED] wrote:
On 7/13/08, RichardAtHome [EMAIL PROTECTED] wrote:
It looks like the Users
the Auth Session User var?
On Jul 14, 9:58 am, AD7six [EMAIL PROTECTED] wrote:
On Jul 14, 10:24 am, RichardAtHome [EMAIL PROTECTED] wrote:
How can this be the preferred behaviour?
What do you do if you get a 'bad' user? Even if you delete his user
record you are helpless to stop him until
1 - 100 of 236 matches
Mail list logo