Wow... this is really getting annoying
On 12/31/2009 10:40 PM, j...@citadelsecure.com wrote:
> Hi,
>
> I am out the office until the 14th of January. If you require urgent
> assistance then please contact p...@citadelsecure.com or call him on 07890
> 592198 - otherwise I will answer your email
It is not your .htaccess or else the styles (green bars) would not
display properly and you would get a 404 error instead of cakes default
error.
I would recommend baking your first few controllers until you get used
to the various naming conventions.
To use bake on windows you must add the path
No problem, I am not sure the OP has it in his model though
On Thu, Nov 19, 2009 at 2:21 AM, jburns wrote:
> My apologies - I meant model but typed controller inadvertently.
>
> On Nov 19, 7:18 am, David Roda wrote:
> > beforeSave is a model callback, not a controller call bac
:22 AM, David Roda wrote:
> I'm sorry its late... I didn't even read your post... please ignore my
> reply! =(
>
>
> On Thu, Nov 19, 2009 at 2:21 AM, David Roda wrote:
>
>> I think you can use the RequestHandler component for this.
>> http://book.cakephp.org/
I'm sorry its late... I didn't even read your post... please ignore my
reply! =(
On Thu, Nov 19, 2009 at 2:21 AM, David Roda wrote:
> I think you can use the RequestHandler component for this.
> http://book.cakephp.org/view/174/Request-Handling
>
>
> On Wed, Nov 18, 200
I think you can use the RequestHandler component for this.
http://book.cakephp.org/view/174/Request-Handling
On Wed, Nov 18, 2009 at 10:31 PM, Dr. Loboto wrote:
> There is a hack to render view from other folder: $this->render
> ('..'.DS.'shared'.DS.'json');
>
> On Nov 18, 6:13 pm, ddaffy wrote
beforeSave is a model callback, not a controller call back. It needs to go
into your model
On Wed, Nov 18, 2009 at 11:06 PM, jburns wrote:
> Whenever I have used beforeSave in a controller (not sure if you are
> using this in AppController?) I have called parent::beforeSave();
> first. Really d
I'm probably misunderstanding your problem, but is there a reason you can't
append the secondary header you want to the top of the views in Section A
and B?
On Wed, Nov 18, 2009 at 4:47 PM, Jesse wrote:
> I'm having a layout issue and I'm not sure how to solve it.
>
> Problem:
>
> I have a defau
if you read that article, it tells you how to pull views from cake pages
into pages not associated with the installation (ie., a joomla module)...
i'm not sure what you are talking about coupling them.
On Tue, Nov 17, 2009 at 4:41 PM, www.landed.at wrote:
> Hi
>
> No I just thought that the most
Hi everyone,
This advice is not specific to integrating CakePHP with Joomla, but I have
used it to integrate with other non Cake sites.
Here is an article which describes this extremely simple but powerful way to
boostrap cake into other applications.
http://debuggable.com/posts/the-ultimate-cak
I have found SwfUpload to be by far the best way to upload files, including
multi-file upload. It requires some configuration but it is very powerful
and is well worth it to become comfortable with.
http://demo.swfupload.org/v220/index.htm
On Tue, Nov 17, 2009 at 3:21 AM, Jeremy Burns wrote:
>
Are you saying that cake is appending debug info to your css and js files?
I've never had this happen but I often run into a similar issue with Ajax
calls when debugging is turned on. This is the solutions to turn off
debugging if it is an Ajax request, hopefully you can modify it to fit your
situ
Also:
when you navigate to the homepage: http://localhost/Cake_Application/ does
everything appear ok? (with styles, etc.) Does it say it is able to connect
to the database?
Do all of the values appear correctly in
Cake_Application/config/database.php ?
On Mon, Nov 16, 2009 at 8:18 AM, jburns
This ought to do it
function index(){
$employees = $this->paginate('Employee');
foreach ($employees as $employee) {
$employee['Employee']['total_mistakes'] =
$this->Employee->getMistakes($employee['Employee']['id'];
}
$this->set('employees', $employees);
}
I'm not exactly
Make sure you've properly included the Ajax helper, the RequestHandler
component, and the prototype and scriptaculous libraries as the
documentation explains.
You then need to setup your form to submit via Ajax. To do this replace
your $form->create tag with $ajax->form as described:
http://book
ds and hundreds of sites with
> this same problem.
>
> --ROB
>
> On Nov 15, 10:07 am, David Roda wrote:
> > in APP_DIRECTORY/webroot/index.php
> >
> > modify line 57 to point to the directory which contains the "cake"
> > folder. Make sur
I have not had any issues with the page in firefox on fedora, ubuntu, or
windows... perhaps it is an issue on your system? Have you tried from a
different computer?
On Sun, Nov 15, 2009 at 9:59 PM, Brenda wrote:
> Is anyone else having this problem? When I go to http://book.cakephp.org
> using
in APP_DIRECTORY/webroot/index.php
modify line 57 to point to the directory which contains the "cake"
folder. Make sure you are not point TO the cake directory, but to its
parent.
Also I would recommend redownloading cake if you have made changes to
the core, ie. bootstrap.php, etc. None of tho
Try adding debug(WEBROOT_DIR.'/img/'.$file); at the top of your page and
check the output
On Sun, 2009-11-15 at 07:48 -0800, PDEagle wrote:
> WEBROOT_DIR.'/img/'.$file
--
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email
d to change all of them to $_GET['the_url'] I
could not get it to work, and by process of elimination I came to change the
line which I did. so I'm sure there are instances where my little work
around will not work as intended.
On Sat, Nov 14, 2009 at 1:32 PM, David Roda wrot
can they post php tags too?
I would be very scared of something like
On Sat, Nov 14, 2009 at 4:55 PM, thankyou wrote:
> I do currently use captcha but its obviously not sufficient. People
> can still post
> On Nov 14, 4:00 pm, Miles J wrote:
> > It seems your not doing any validation or fil
Hi everybody,
This may be obvious to some, I'm pretty sure I remember reading about it
previously, but I could not find the article I originally read.
I am creating a "shareItem" action for a site I am working on. This is
pretty standard it just builds a URL for a public view of the item and sen
Are you using the stable 1.2.5 version of the core or the 1.3 alpha?
If you are using git to get the core you can make sure you are using 1.2 by
executing the following commands in the core directory
git branch --track 1.2 origin/1.2
git checkout 1.2
On Sat, Nov 14, 2009 at 3:50 AM, Quess wro
yes, if you are in admin routing, html helper will default to admin routing
one recommondation, instead of using 'admin' => 'false' (or true), It is
safer to use Configure::read("Routing.admin") => 'false'
but you do need to manually state if you want to break out or into admin
routing.
On Thu,
This is actually in your database setup
You need to not only chance the field to allow null, but change the default
value to "null" instead of what it is set at now
On Fri, Nov 13, 2009 at 1:16 AM, Braindead wrote:
> Is there realy no automagic in Cake that converts empty date fields to
> NULL?
yes
On Fri, Nov 13, 2009 at 2:29 AM, Maximillian Schwanekamp <
anaxama...@gmail.com> wrote:
> Shouldn't that latter conditions array be
>
> 'conditions' => array(
>'OR'=>array(
> 'CuisinesRestaurant.cuisine_id' => 'Cuisine.id',
> 'Cuisine.name LIKE ' => "%American%"
>)
> )
e
> var $validate = array(
> 'username' => array('notempty')
> );
> like
> var $validate = array(
> 'username' => array('email')
> );
>
> just ok!
>
> 2009/11/13 David Roda
>
&g
l methods up(), down(),
previous(), next() . You can read more about them here:
http://www.phpriot.com/articles/beginning-with-prototype/5
hth,
Dave
On Sat, Nov 14, 2009 at 2:56 AM, David Roda wrote:
> If the loading div is not hiding it means that the javascript in the
> complete method is t
If the loading div is not hiding it means that the javascript in the
complete method is throwing an error so the scripts stop running.
I recommend using the Firebug extension for mozilla firefox. After
installing it you can select the "console" tab. This will display any
javascript errors as wel
To accomplish this you will have to override the Auth COmponents "authorize"
variable and isAuthorized() method to check both the username and email.
You can read about it here: http://book.cakephp.org/view/396/authorize
On Sat, Nov 14, 2009 at 12:40 AM, jburns wrote:
> Have you considered usin
I still say Miami but all of you people suggesting cold places... come ON!
live a little! wherever it is it should be warm and sunny =)
On Sat, Nov 14, 2009 at 12:27 AM, Aimee wrote:
> I vote for West Coast too. It might as well be somewhere warm and
> fabulous. Specifically, San Diego. LA ha
I would probably split it into two calls
assuming this code is in your Model1 model:
$this->saveAll($data['Model1'], array('fieldList' => array('date')));
$this->Model2->saveAll($data['Model2'], array('fieldList' =>
array('date')));
On Fri, Nov 13, 2009 at 8:52 AM, mattalexx wrote:
> Any luck
He actually was saying that
The PHP parser inserts ?> automatically at the end of the files if its not
there. I've read this recommendation in many php frameworks which use
template files.
On Fri, Nov 13, 2009 at 12:33 PM, Dave wrote:
> Ok...I just read it wrong.
>
> I thought you were saying
USA East Coast.
Come visit us in Miami!!
On Fri, Nov 13, 2009 at 5:34 PM, Jeff Deroshia wrote:
> If we are voing in the thread, I choose USA East Cost.
>
> If not, where do we vote?
>
> Jeff
>
>
>
> On Thu, Nov 12, 2009 at 10:43 PM, Graham Weldon
> wrote:
>
>> Hi all,
>>
>> The CakePHP team ha
Try with a trailing slash after upload $this->redirect('/files/upload/');
On Fri, Nov 13, 2009 at 2:57 PM, [ ramesh ] wrote:
> No it's not working, and upload is not redirecting back to index, i suspect
> is there anything todo with routes?
>
> On Fri, Nov 13, 2009 at 10:09 PM, wfisk wrote:
>
>
I'm not sure what your $ajax->div tags are doing because I can't locate that
method in the documentation.
To expand on what John said, you will need to add a value to your $options
array in the AjaxHelper method which requests the function
without any other options it would look something like th
I'm sorry I think you misunderstood my question
I am trying to figure out how to pass a javascript value from the page which
calls the ajax function.
I was able to do this by copying and pasting the javascript generated by the
CakePHP Ajax helper and modifying it, but I am looking for a way to do
This is kind of obvious but could you split the longer forms into two
sections so the modal window isn't so tall?
You can pass $this->data from the first section to the next and store them
in hidden fields, then actually persist the data on the second page (to
ensure no partial submissions).
On T
o configure it so can work without
> it?
>
> thanks
>
> Rohman
>
> On Oct 26, 12:24 pm, David Roda wrote:
> > Alternatively you can just uncomment the line in core.php to disable the
> > pretty urls.
> >
> > This makes the url's look
> l
Alternatively you can just uncomment the line in core.php to disable the
pretty urls.
This makes the url's look like
http://yoursite/app_dir/index.php/controller/action
On Mon, Oct 26, 2009 at 12:14 AM, Dr. Loboto wrote:
>
> AllowOverride controls the use of .htaccess files, so NO, you cannot
>
Ixus,
I'm not sure if this is exactly what you are looking for, but as I've gone
through the steps of learning CakePHP, there are definitely some topics that
are pretty much required for most projects but are rarely understood
completely.
For example are you completely familiar with the theory an
What do you need to modify in the bootstrap.php?
On Sun, Oct 25, 2009 at 5:03 AM, Jon Bennett wrote:
>
> Hi Jeremy,
>
> > Can anyone point me to a good solid SVN deployment howto for CakePHP
> > and a live app? Something along the lines of how simple WordpPress
> > explains it (http://codex.word
Thanks for the response paul
while I will be definitley using some of your code to further improve mine,
my main issue was that notEmpty was not working for the password field
because Auth automagically hashes it. I have no problem with comparing the
two hashed passwords.
I will try with your va
Ok, of course right after I posted this I had a bit of enlightenment:
basically I am pretty sure this is occuring because Cake Automagically
hashes the "password" field when it is being submitted. As you can see I
handle this in my comparePassword method.
I am guessing that the blank value is be
44 matches
Mail list logo