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 the
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 wrote:
> I think the default action is to self-post i.e. the form post/get goes
> to the same controller/action that served t
You could always add your own wrappers to your AppModel :-)
On Feb 16, 3:52 pm, leo 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 don't have to
>
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 wrote:
> We're trying
Conditional comments are the way forward. The user agent can be
spoofed.
On Feb 13, 11:37 am, Marcelo Andrade wrote:
> On Fri, Feb 13, 2009 at 7:17 AM, mona wrote:
>
> > hi viewers
>
> > i have one serious problem i have to set the page layout in such a way
> > that my website should perfectly
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 s
Another vote here for Chaw needing a download link!
On Feb 6, 7:43 pm, Matt Curry 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 GitHub. I assume
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" gr
I've been using MySQL Workbench. Does everything I need.
http://dev.mysql.com/workbench/
On Feb 4, 7:13 am, Wayne Fay 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, or a DB edito
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 y
search twitter itself:
>
> http://search.twitter.com/search?q=%23cakephp
>
> On Jan 27, 8:23 am, RichardAtHome wrote:
>
> > There's also a #cakephp hashtag:
>
> >http://hashtags.org/search?query=cakephp&submit=Search
>
> > On Jan 26, 5:42 pm, gerhardsletten wro
ore cached by the browser) would outway the overhead of
using an additional helper.
On Jan 27, 2:58 pm, Gonzalo Servat wrote:
> On Tue, Jan 27, 2009 at 12:51 PM, RichardAtHome
> wrote:
>
>
>
> > Try it from a layout.
>
> > ...but your question is about call
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:
dateTime("[a][b][c][d]") ?>
Thanks to the person on IRC who hinted at this solution :-)
On Jan 24, 4:17 pm, Richard
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 wrote:
> On Mon, Jan 26, 2009 at 12:17 PM, RichardAtHome
> wrote:
>
>
&
or you could put the function in your AppController
On Jan 27, 2:17 pm, leo 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' that model in additi
There's also a #cakephp hashtag:
http://hashtags.org/search?query=cakephp&submit=Search
On Jan 26, 5:42 pm, gerhardsletten wrote:
> http://www.twitter.com/gerhardsletten
>
> A salty mix of cake, ez publish, triathlon, food and live. Code stuff
> mostly in english, but some norwegian now and th
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 wrote:
> > I tried doing phpinfo() from the index.php file and nothing was
> > displayed
>
> Doesn't this ring any alarm bells?
-
I think you'll need to post some code before anyone can help you with
this...
On Jan 27, 12:49 am, Mahesh Sutar 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, but Its overlapping
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 wrote:
> I have been working for a number
t; On Mon, Jan 26, 2009 at 9:24 AM, RichardAtHome wrote:
>
>
>
> > Syntax should be:
>
> > echo $html->css( 'right_column', array( 'media' => 'screen' ), null,
> > false );
>
> Not if you're using the last parameter as "fa
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 wrote:
> Hey,
>
> Ok, I found both of the .htacess files and added "RewriteBase /myapp"
> so my .htacess file
Syntax should be:
echo $html->css( 'right_column', array( 'media' => 'screen' ), null,
false );
On Jan 24, 6:45 pm, Gonzalo Servat 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 inclusion in
>
$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 wrote:
> There are lots of goodies you can use (for MySQL at least).
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 wrote:
> Find .htaccess files (there are two) and add "RewriteBase /myapp"
> into mod_rewri
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 wrote:
> Hi all
>
> I've hit a snag I'm hoping someone can help with. Per
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 wrote:
> Hello!!
>
> My Cake-App works perfect on my localhost, but after i uploaded it i
> become the error msg:
>
> Warning: Failed opening 'cake/bootst
Hi all
I've hit a snag I'm hoping someone can help with. Perhaps one of the
devs can explain this behaviour?
dateTime("a.b.c") ?>
generates (as expected):
...
whereas:
dateTime("a.b.c.d") ?>
generates:
...
and
dateTime("a.b.c.d.e") ?>
generates
...
Unfortunately, I'm building a dyna
"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
ticle.id) from
> articles Article where Article.tag_id = Tag.id and Article.published =
> 1) AS tag_count"
> )));
>
> Here's an example of using the
> finderQuery:http://groups.google.com/group/cake-php/msg/c10840be78a34df0
>
> On J
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 exa
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 !
And don't get me started on 'smart quotes'! ;-)
On Jan 16, 8:49 pm, clarkphp wrote:
> Figured it out, with the help of a sharper pair of eyes than mine. It
> turns out t
Are you including the Model.id field in your edit form view?
create("Model"); ?>
input("Model.id"); ?> <-- important line
end("Submit"); ?>
On Jan 16, 4:37 pm, mona wrote:
> Here is my edit function code i don't know where i mistaken if i edit
> my record it added automatically one new record
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 ($this->
generate tag cloud
>
> Hope this helps
>
> 2009/1/17 RichardAtHome
>
>
>
>
>
> > Given the following Model relations:
>
> > article <-- HABTM (articles_tags) --> tag
>
> > How do I fetch back a list of Tags with the count of associated
> >
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(
I've never needed a build path for PHP :-)
Here's how I do CakePHP dev with PDT:
1) Unzip cake to c:\htdocs\projects\my_project
2) Open up eclipse
3) Select workspace: c:\htdocs\projects\
4) Create a new project called "my_project"
5) Get coding.
On Jan 8, 12:32 pm, NirC wrote:
> Hi All,
>
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
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 vi
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
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
> $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
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()
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, forrestgump
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 <[EMAI
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:
>
> > create("Event", array("actio
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 P
Note:
Something
Something2
..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:
/*
* forms
*/
#content form {
padding: 16px;
background-color: #DDD;
-moz-border-radius: 16px;
}
#content fi
Note: this groups post:
http://groups.google.com/group/cake-php/browse_thread/thread/c05c03e397549dde/57f2e4d6b3f7fb0e?lnk=gst&q=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 a bookmarkable search results page. I have the
following form so I am using 'get' search form:
create("Event", array("action"=>"search",
"type"=>"get")) ?>
input("Event.start_date") ?>
end("search") ?>
When the form is posted, the URL looks like this:
http://www.example.com
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 Prod
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
> Cak
'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 w
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 enoug
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()
Also
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
"
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`, `O
> 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
>
> http
I'll answer b)
/app/views/layouts/default.ctp:
header markup goes here
menu markup goes here
markup for footer
> if(session) print "hello $user"
> else show login link.
That's correct :-) Why do you not think this should go in the layout?
You could paste the code into an elemen
> 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_increme
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:
> See:http:/
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 m
> 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 C
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 som
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
bump?
On Aug 24, 1:52 pm, RichardAtHome <[EMAIL PROTECTED]> wrote:
> Also (may be related), in the element, why doesn't the following work?
>
> echo $html->css(array(
> "element.site_search"
> ), null, array(), false);
> ?>
>
> (the CS
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
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 ?
--~--~-~--~~-
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 ;-)
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:
ent 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.
>
>
o
> > $this->read(null,$id) the model's data array will contain the update
> > field and it seems like I'll then have to manually unset it if I want
> > to update the time in the field.
> > If I don't do that cake will not fill the update field with a new
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
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
@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, kn
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 (validation
This is how Cake does it in the scaffold home page:
getDataSource('default');
?>
isConnected()):
echo '';
__('Cake is able to connect to the database.');
echo '';
else:
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
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
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
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 talkin
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
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]
head.
On Aug 24, 11:27 am, RichardAtHome <[EMAIL PROTECTED]> wrote:
> I have a simple element:
>
> site_search.ctp:
> create("Search") ?>
> inputs() ?>
> end("Search") ?>
>
> Model Search is a tableless model which I manually create t
I have a simple element:
site_search.ctp:
create("Search") ?>
inputs() ?>
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 $_schema = array(
"search
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 sho
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 a
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 tw
$contacts = $this->Contact->find('first',
array(
'conditions' =>
array('Contact.jobType' => 'main)
)
);
Note the 'first' parameter.
On Aug 22, 12:40 am, eagle <[EMAIL PROTECTED]> wrot
Dunno about 'best', but this works:
In your view (search.ctp)
create("Model", array("action"=>"search",
"type"=>"get") ?>
input("search_for") ?>
end("Search") ?>
... output your result here
In your controller:
function search() {
if (isset($this->params['url']['search_for']
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 i
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:
foreach($po
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 a
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 downl
You can save yourself a *lot* of heartache with this issue by leaving
off the closing ?> in your php files :-)
--- snip ---
is optional
On Jul 17, 2:20 pm, haj <[EMAIL PROTECTED]> wrote:
> I'm using this editor on windows:
>
> http://www.emeditor.com/
>
> There is a checkbox in config menu if t
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.cla
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 mess
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 section for your webroot folder (mine is c:
\htdocs
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.0ToD
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
Back again...
Added the following to the save block of my edit function:
$this->Session->write("Auth", $this->data);
($this->data is provided by the User edit form)
Which fixed the problem but with a minor issue (which I can live with
for now).
On Jul 14, 2:57 pm,
1 - 100 of 243 matches
Mail list logo