great topic, just helped me alot here, thanks! so good cake got this group!
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this
Hi,
As I already mentioned "You don't need to delete flash message in session
explicitly, $this->Session->flash() does it automagically.", the message
doesn't appear after page refresh.
In the first message you mentioned "But when I go after the edit to the
details view and back to the index view
Hi all,
I am a new PHP developer. I intend to use Xdebug for debugging in
Netbean IDE. I installed Xdebug and it was good for a normal PHP file.
However, i have checked on CakePHP project, Debug function can start a
debug session but breakpoint is only in index.php file on webroot or
webroot/app.
If this loads:
http://server.local/~adrian/ToDo/index.php/tasks/index
then its probably a mod_rewrite issue..
Andras Kende
http://www.kende.com
On Jan 11, 2011, at 11:37 AM, Kilty wrote:
> Hi guys (and gals)
>
> I've come back to Cake to try and solve a few problems and to get my
> head back i
I don't use netbeans there is this
https://github.com/evilbloodydemon/netbeans-cakephp-bundle
On 11/01/2011, clod wrote:
>
> I use and suggest free portable PHP IDE - http://www.codelobster.com
> Codelobster PHP Edition with special CakePHP plug-in for auto-completion,
> context help and etc.
>
Thanks!
On Jan 11, 2:14 pm, cricket wrote:
> On Tue, Jan 11, 2011 at 1:01 PM, estherM wrote:
>
> > I'm using XAMPP on linux. I've found my httpd.conf file in opt/lampp/
> > etc, but am not sure what I need to do with it. I've searched for
> > "rewrite", and there's only one line:
>
> > LoadModul
On Tue, Jan 11, 2011 at 1:01 PM, estherM wrote:
>
> I'm using XAMPP on linux. I've found my httpd.conf file in opt/lampp/
> etc, but am not sure what I need to do with it. I've searched for
> "rewrite", and there's only one line:
>
> LoadModule rewrite_module modules/mod_rewrite.so
>
> There's not
On Jan 11, 2011, at 11:37, Kilty wrote:
> When I use an URL such as: http://server.local/~adrian/ToDo/ the
> initial page comes up saying:
> Your tmp directory is writable.
> The FileEngine is being used for caching. To change the config edit
> APP/config/core.php
> Your database configuration
On Tue, Jan 11, 2011 at 4:09 AM, osamo101 wrote:
> Hi Amit,
>
> This is very strange, the __l() is repeated in the code over 8000
> times with strings i.e. __l('Delete'), do you have any idea about how
> this can happen?
I don't believe it's a Cake function. Perhaps it was defined in the
old vers
On Tue, Jan 11, 2011 at 1:25 PM, zzella wrote:
> Hi,
>
> I have a model where a field is required on the Add (create) page but
> can be empty on the Modify (update) page.
>
> My model specifies the field should be not-empty on create only, but
> the "required" css class (red asterisk) still gets a
Can you post some code?
On Tue, Jan 11, 2011 at 1:04 PM, Filipe Estrela wrote:
> Notice (8): Undefined property: UsuariosController::$data
> [CORE\cake\libs\view\view.php, line 312]
> Code | Context
>
> for ($j = 0; $j < $count; $j++) {
> $var = $this->__passedVars[$j]
Hi,
This problem occurs if you want to print/echo something before header
function. So remove all printing function before header function.
This problem also can occurs there have any white space in controller
after php closing tag( ?>)
So check it.
Hope it will works fine.
Thanks
On 1/11/11, A
I'm a total newbie to Cake and not much better with apache; I've done
a lot of PHP but always with a server that's already been set up by
someone else. So I'm going through the basic blog tutorial, and it
says:
"A Note On mod_rewrite
Occasionally a new user will run in to mod_rewrite issues, so I'
Hi,
I have a model where a field is required on the Add (create) page but
can be empty on the Modify (update) page.
My model specifies the field should be not-empty on create only, but
the "required" css class (red asterisk) still gets added on the modify
page. How do I make this a non-required f
*Notice* (8): Undefined property: UsuariosController::$data
[*CORE\cake\libs\view\view.php*, line *312*]
Code | Context
for ($j = 0; $j < $count; $j++) {$var =
$this->__passedVars[$j];$this->{$var} =
$controller->{$var};
$controller = Usuarios
I found my own answer. To anyone who needs this see the following.
In your function in the controller that you would like to have the
custom order on do this
$this->paginate = array('order' => 'yourModel.yourColumn DESC');
$data = $this->paginate('YourModel', array('yourColumn' =>
'condition'));
Hi guys (and gals)
I've come back to Cake to try and solve a few problems and to get my
head back into programming again... the problem is that I've hit a
snag or two...
I'm running back over the demo/quick intro tutorials with not much
success.
I am running an OSX 10.6 Server with Apache/PHP/etc
I agree with the last few posters. You may need to tell your client
to look at their code. Are you merely a hosting provider or are you a
coder?
On Jan 10, 8:13 am, javier0051 wrote:
> Hi
>
> I am a completely newbie to cake php. A new customer has a site
> developed with cake php and we recent
Build on CakePHP 1.3.4, ModraCart is a serious competitor to major
shopping cart platforms. Custom URL's for static pages you create,
category and manufacturer pages, product pages. Customize shipping
options. Accept credit cards and be PA-DSS compliant. Find out more at
http://www.modracart.com";>
Hello Amit,
Thank you for your answer. When I refresh the view page the message is
gone.
It is not done automatically. How can I refresh the page?
Leo
On 10 jan, 07:31, Amit Badkas wrote:
> Hi,
>
> Does the details page output flash message? You don't need to delete flash
> message in session e
The 2.0 branch wont be anytime soon.
On Jan 11, 5:15 am, euromark wrote:
> there is none :)
> i already asked myself the same question
> we got to be patient (but since dev is already released in can only be
> a matter of a few months)
>
> On 11 Jan., 10:04, Adrian Arnautu wrote:
>
> > I'm not t
Hi all...found my own answer to this question and i hope this helps
someone .
in your function in the controller that you would like to have the
custom order on do this
$this->paginate = array('order' => 'yourModel.yourColumn DESC');
$data = $this->paginate('YourModel', array('yourColumn' =>
'con
that error usually happens when a call to a find query (in this case a
paginate query) is written wrong. That seems like an app error not
hosting.
On Jan 11, 9:07 am, AD7six wrote:
> On Jan 11, 3:37 pm, Ryan Schmidt wrote:
>
> > On Jan 11, 2011, at 07:10, javier0051 wrote:
> > > Code | Context
Hi, im sure this is a simple question but i can't find any docs
related to this...
I have multiple views coming from one controller (as normal)
I would like to paginate them differently in each view.
say view a, b, and c, are paginated ASC and view d, and e, are
paginated DESC
I have in my cont
On Jan 11, 3:37 pm, Ryan Schmidt wrote:
> On Jan 11, 2011, at 07:10, javier0051 wrote:
> > Code | Context
>
> > $sql = "SELECT COUNT(*) AS `count` FROM `articles` AS `Article`
> > LEFT
> > JOIN `categories` AS `Category` ON (`Article`.`category_id` =
> > `Category`.`id`) LEFT JOIN `
On Jan 11, 2011, at 07:10, javier0051 wrote:
> Alright... I set the debug mode to 1 under config/core.php... There's
> indeed an error (thoug the site is setup just as in the old machine).
> This is what I'm getting:
>
> ---
The Problem is the redirecting a page over the php header() function.
This just works, if there is absolutly NO output send. CakePHP uses
the header-redirect for redirecting between the controller actions. So
if you have an output e.g. with debug() you will get the information,
that no redirecting
I use and suggest free portable PHP IDE - http://www.codelobster.com
Codelobster PHP Edition with special CakePHP plug-in for auto-completion,
context help and etc.
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/Use-CakePHP-in-NetBeans-IDE-6-8-tp3289370p3336106.html
Sent
Hi,
I always have similar problems. With HABTM you have to join the tables
by yourself over the options-array.
Look here for the syntax:
http://book.cakephp.org/view/872/Joining-tables
This should also work with the pafinate method.
On 11 Jan., 02:29, Synue Cunioci wrote:
> Hi everybody!
>
> H
there is none :)
i already asked myself the same question
we got to be patient (but since dev is already released in can only be
a matter of a few months)
On 11 Jan., 10:04, Adrian Arnautu wrote:
> I'm not tracking the dev progress, could you tell me when the 2.0 release is
> to be scheduled?
>
>
Alright... I set the debug mode to 1 under config/core.php... There's
indeed an error (thoug the site is setup just as in the old machine).
This is what I'm getting:
Thanks for replying Tarique.
Actually I don't get any errors, the app just doesn't seem to find the
contents that were actually visible on the site mounted on the old
server. The contents are actually stored in the db... The URL is
http://www.acepweb.org.ar The main page is totally visible but wh
On Dec 31, 2010, at 02:27, netusco wrote:
>> As for the second point about handling this in the controller. It's
>> the manual itself that says this should be handled with FormHelper.
>> From this page here: http://book.cakephp.org/view/1143/Data-Validation
>> , it says: "For more information abo
What if the saveAll is called from the parent model rather than from
the actual model itself?
nope, i am not passing anything other than $data.
On Jan 11, 7:56 pm, Amit Badkas wrote:
> Hi,
>
> The saveAll() internally calls save(), that's why I suggested to use
> beforeSave(). Are you passing an
Hi,
The saveAll() internally calls save(), that's why I suggested to use
beforeSave(). Are you passing any option to saveAll() other than data?
Amit Badkas
PHP Applications for E-Biz: http://www.sanisoft.com
On Tue, Jan 11, 2011 at 5:11 PM, Zeu5 wrote:
> Thank you Amit, but the same issue a
Thank you Amit, but the same issue arises.
in a saveAll, the fields are not directly at ['model_alias']
['field_name']
so changing it to beforeSave would not help.
I am not sure if i have made myself clear enough.
On Jan 11, 7:36 pm, Amit Badkas wrote:
> Hi,
>
> I think you need to try beforeS
Hi,
I think you need to try beforeSave() instead of beforeValidate(), hope it
may work.
Amit Badkas
PHP Applications for E-Biz: http://www.sanisoft.com
On Tue, Jan 11, 2011 at 5:02 PM, Zeu5 wrote:
> let say my model Link has 3 fields
> route, model, action,
>
> what I want is that route is
let say my model Link has 3 fields
route, model, action,
what I want is that route is the combination of model and action.
eg
model = '/orders/view/';
action = '3';
so route is '/orders/view/3';
i did this in my beforeValidate
if (isset($this->data['Link']['model']) && isset($this->data['Link'
I have asked a similar question a few days ago. If I understood you
correctly, then you basically want people to be member of more than
one group. I have been told that I would leave the normal acl way
there and I would have to implement my authentication myself.
Basically something like;
// in be
Hi all
i just upgraded to 2.0-dev
the only big problem i'm encountering are on-the-fly generated PDFs
i'll use one of my views as example
model/controller: this is a PageController action, without data and
without model. it just changes the layout from "default" to "pdf"
PdfHelper: that's a simp
>From the book [1]
//Create: id isn't set or is null
$this->Recipe->create();
$this->Recipe->save($this->data);
//Update: id is set to a numerical value
$this->Recipe->id = 2;
$this->Recipe->save($this->data);
[1] http://book.cakephp.org/view/1031/Saving-Your-Data
On 11 January 2011 10:23, Sp
Hi All,
Im trying to update db instead of insert if entry already exists - CakePHP
Any thoughts on how I could do that ?
thanks
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed
You should look at this:
http://book.cakephp.org/view/1017/Retrieving-Your-Data
and this:
http://book.cakephp.org/view/1031/Saving-Your-Data
On 11 January 2011 09:52, Spha ps wrote:
> Ok I will try this in the mean while but what I am doing is setting cookies
> so that it recognises that spec
Ok I will try this in the mean while but what I am doing is setting cookies
so that it recognises that specific users details when they add info to the
database so they enter their email among other things so thats why im using
email to check for their details so that if they already exist then i a
Hi,
You can check in the old code, in which file does the 'function __l' string
contain.
Amit Badkas
PHP Applications for E-Biz: http://www.sanisoft.com
On Tue, Jan 11, 2011 at 2:39 PM, osamo101 wrote:
> Hi Amit,
>
> This is very strange, the __l() is repeated in the code over 8000
> times
Try using:
$user = $this->User->find('first', array('conditions' => array('User.email'
=> $email_address)));
Although in most applications it's usually best to get the current user's id
from the auth component session data.
i.e. $this->Auth->user('id');
Unless ofcourse you're doing something a l
Hi Amit,
This is very strange, the __l() is repeated in the code over 8000
times with strings i.e. __l('Delete'), do you have any idea about how
this can happen?
On Jan 11, 8:46 am, Amit Badkas wrote:
> Hi,
>
> I don't think there is/was any __l() function in CakePHP-1.2.x, it may be
> written i
I'm not tracking the dev progress, could you tell me when the 2.0 release is
to be scheduled?
Thanks,
Adrian
On Tue, Jan 11, 2011 at 1:10 AM, euromark wrote:
> thats what i remarked at the end :)
> i suppose it does
>
> as for the other bottlenecks we will have to wait for 2.0 (and lazy
> loadin
Hi all,
I was wonder how would i go about check the users table to see if an email
exists if it does get that id to add a new post for that user ?
thanks in advance
Spha
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You receive
49 matches
Mail list logo