Hey guys,
Check this out:
http://coding.smashingmagazine.com/2011/10/05/which-framework-would-you-recommend-to-a-new-developer/
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
Sorry Thomas didn't see your answer :)
On Thu, Sep 29, 2011 at 6:29 PM, Teddy Zeenny wrote:
> You don't need to have a semicolon if the statement ends with a php closing
> tag ( ?> ).
>
>
> On Thu, Sep 29, 2011 at 6:00 PM, Yves S. Garret <
> yoursurrogate...
You don't need to have a semicolon if the statement ends with a php closing
tag ( ?> ).
On Thu, Sep 29, 2011 at 6:00 PM, Yves S. Garret
wrote:
> Just going through the book tutorial. I got to this page:
>
> http://book.cakephp.org/view/1536/Creating-Post-Views
>
> At the very end you see this:
>
To easily identify the error, you can echo pr($this->data) in the add
action.
Could it be that the attributes should be lower case ? i.e.
$this->Form->input('title');
Teddy
On Tue, Sep 27, 2011 at 4:43 AM, nobles wrote:
> Hi,
>
> I'm new to cake and have only have a fundamental understanding of
I guess you can do something like this:
$group_id=$this->Auth->user('group_id');
$products=$this->Product->find('all',array('conditions'=>array('Product.group_id'=>$group_id)));
Is this what you're looking for ?
Teddy
On Wed, Sep 21, 2011 at 12:28 PM, elogic wrote:
> Is there any quick / bet
You can check out the cakephp i18n.
Check out both these links maybe they can help you.
http://book.cakephp.org/view/1228/Internationalization-Localization
http://book.cakephp.org/view/1328/Translate
On Fri, Sep 16, 2011 at 7:20 PM, heohni <
heidi.anselstet...@consultingteam.de> wrote:
> Thanks
1. *Create controller and model:*
The controller and model to use depend on the table the languages are stored
in. For example if the languages are in a table called "languages", then
create a model named Language and a controller named LanguagesController.
2. *Create an action that returns the
True about the password.
It could also be that instead of $this->Auth->login($data)
you should write $this->Auth->login($this->data)
On Thu, Sep 15, 2011 at 5:48 PM, Janos Csikos wrote:
> Hi,
>
> not sure, but it looks like for me if the password ($this->Auth-
> >password('demo')) is already en
What CakePHP version are you using ?
On Wed, Sep 14, 2011 at 7:41 PM, tubiz wrote:
> Please I have a register action in my user controller how do i send a
> mail to a user after he has successfully registered and his details
> has been stored in the database.
>
> I would like to use Google SMTP
After $this->ModelName->save();
use $id=$this->ModelName->id
On Mon, Sep 12, 2011 at 4:52 PM, Sivaramakrishnan S
wrote:
> hi'
> I need to retrive data from last inserted id, how to get the last
> inserted id from mysql database...
>
> --
> Our newest site for the community: CakePHP Video Tuto
ake attachments in this mailing list or should I
>>>>> upload the files somewhere and then throw a link?
>>>>>
>>>>> On Thu, Sep 8, 2011 at 7:31 PM, Sam Sherlock
>>>>> wrote:
>>>>>
>>>>>> Your server is not config
Yes, simply go to: http://localhost/cake_1_3/
You should see the default CakePHP page which will tell you what is working
and what's not...
On Thu, Sep 8, 2011 at 9:53 PM, Yves S. Garret
wrote:
> Hello,
>
> I tried posting this before, but did not see it show up in the mailing
> list, so I'll try
Try this:
$result = $this->Tree->find( 'first',
array(
"contain" => array(
"Apple"=>array('limit'=>1)
),
Check this out: http://book.cakephp.org/view/1339/Tree
On Wed, Sep 7, 2011 at 9:48 AM, Greg Skerman wrote:
> Start by reading the book - you'll find most of what you need right there.
>
> you create:
> 1) a database table which complies with what the tree behavior expects
> 2) a model for that t
Can using RabbitMQ for cache clearing be a possible solution ? Maybe speed
up the write and perform cache clearing as an afterSave triggered
asynchronous event ?
On Tue, Sep 6, 2011 at 11:45 PM, mark_story wrote:
> Because its globbing the disk for files to delete, and deleting them.
> With a sl
It's not the computer account's credentials. It is mysql's username and
password.
If you haven't set any, I would try this:
var $default = array(
'driver' => 'mysql',
'persistent' => 'false',
'host' => 'localhost',
'port' => '',
'login' => 'root',
'passw
1. Make sure you are working in /app/config/database.php and NOT in
/app/config/database.php.default
2. Make sure mysql is on (try to access it using phpmyadmin for example)
3. Make sure you already created a database called 'cakeblog_dtd'
4. Double check your username and password.
Are yo
I think it's better not to change a pre-built class (in case they perform
updates to it or fix any bugs you wouldn't be able to make use of them).
This is why CakePHP has the "vendors" system. You simply place your
pre-built class in your vendors folder and call it from your application.
For exam
I guess all of it if you don't need testing.
On Sun, Sep 4, 2011 at 1:15 PM, Prabha vathi wrote:
> Is it important, what can i delete in cake/test?
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cak
And use Configure::write('debug', 2); when you are looking for bugs.
On Sat, Sep 3, 2011 at 8:45 PM, Teddy Zeenny wrote:
> Because you set autoRender=false;
>
> This means you should call $this->render("ViewName"); after the
> $this->set('results'
Because you set autoRender=false;
This means you should call $this->render("ViewName"); after the
$this->set('results',$result) or remove the "this->autoRender=false"
On Sat, Sep 3, 2011 at 8:29 PM, erikober wrote:
> Thanks for the reply.
> If I pull the echo $result out of the controller and i
Check that the view 'new_list.ctp' contains:
On Sat, Sep 3, 2011 at 8:18 PM, erikober wrote:
> In controller:
>
> function new_list() {
>
>Configure::write('debug', 0);
>$this->autoRender = false;
>
>$this->loadModel('Menugroup');
>$this->Menugroup->recursive = 1
Yes, it is the sql dump at the bottom. You can use it to check if the query
is actually being sent to mysql or CakePHP is simply refusing to do it.
Here's how I would go about fixing it :
1. Check Sql dump if insert is actually being performed
- If yes, find problems in the query
he "elseif" statement, and is because
> this why i see the "clean login" with no error messages... but I don't
> understand what happens with the form data... (because when the data is not
> correct, the app can know it and show an error message...).
>
>
> 2
nLogin', false);
} else if(empty($this->data)) {
$this->set ('cleanLogin', true);
}
else {
exit ('login action not redirecting');
}
}
On Fri, Sep 2, 2011 at 4:16 PM, CaStarCo wrote:
>
>
> 2011/9/2 Teddy Zeenny
>
>&g
Can you check if you are reaching the dashboard action (in users controller)
before being logged out?
For example by setting
function dashboard()
{
exit('in dashboard');
//dashboard code here
}
On Fri, Sep 2, 2011 at 3:08 PM, CaStarCo wrote:
> Hello, I've wrote here one month ago about
You can set: var $uses=array('ModelName') in each of the controllers.
But just my opinion:
Don't name the table "objects" because your model name would be Object which
is a class that already exists in CakePHP.
Second, why link multiple controllers to one model. Instead, link multiple
models to
Can you show the sql log ? Is the data you're showing the actual
pr($this->data) output ?
ps: i'm assuming Application array having two [name] keys is a typo.
On Fri, Sep 2, 2011 at 1:35 PM, Dwayne Hanekamp wrote:
> Hey all,
>
> I'm building an application on which people need to fill in some
>
loaded yet to be used in the condition, on the other hand, you can
> use $_SERVER['REQUEST_URI'] in order to build your condition body.
>
> On Thu, Sep 1, 2011 at 11:00 AM, Teddy Zeenny wrote:
>
>> Whether I use gzipping depends on the action/view, and not in my entire
>>
think I can condition my gzip in boostrap.php ?
On Thu, Sep 1, 2011 at 5:53 PM, Ma'moon wrote:
> put ob_start ('ob_gzhandler') in your bootstrap.php file.
>
>
> On Thu, Sep 1, 2011 at 10:27 AM, Teddy Zeenny wrote:
>
>> Hey guys,
>>
>> Does anyone have
Hey guys,
Does anyone have an idea on how to gzip cached views ?
The way I would do it is use ob_start ('ob_gzhandler') in my
controller's beforeFilter.
The problem is when a view is cached, the beforeFilter is no longer
called.
--
Our newest site for the community: CakePHP Video Tutorials
ht
Try something like this in the UsersController
function login()
{
if ($this->Auth->user())
{
//set timestamp here
}
}
On Mon, Aug 29, 2011 at 11:46 PM, rethab wrote:
> Hi there
>
> I currently have a Users controller, which contains a login method.
> This method is in turn invoked e
Are there any spaces or new line characters after the " ?> " ?
On Wed, Aug 24, 2011 at 6:22 PM, pang wrote:
> Hi,
>
> I met a very odd problem, I create a new controller which request user
> session to access. the session name is called "User".
>
> When I have ?> at the end of the controller fi
Make sure your components extend Component and not Object.
On Wed, Aug 24, 2011 at 6:48 AM, Ben McClure wrote:
> Hmm... actually I guess it is called but I have some sort of problem with
> one of my components that was preventing AppController from being used
> apparently (although no errors wer
e the
> afterFind
> method and it showed me only "null" before I did anything in the method.
>
> Anja
>
> Am Montag, 22. August 2011, um 16:59:09 schrieb Teddy Zeenny:
> > As Thomas said, $this->findQueryType should definitely work in the
> > afterFind().
As Thomas said, $this->findQueryType should definitely work in the
afterFind().
Which version of cakephp are you using ?
Can you show us the afterFind code ?
On Mon, Aug 22, 2011 at 5:55 PM, Anja Liebermann <
anja.lieberm...@platinnetz.de> wrote:
> But I need the value IN the afterFind method. N
Yep, the unset will do it.
On Fri, Aug 19, 2011 at 11:47 AM, Prabha vathi wrote:
> Hi,
>
> No edit! Once added that is it. So I don't want anyone to edit the post
> added! Admin has edit section.
> so the unset will do that trick?
>
> I have already added the unset. But I didn't check it so far.
ssed since the article
> created.
>
>
> On Fri, Aug 19, 2011 at 10:42 AM, Teddy Zeenny wrote:
>
>> *Now instead of posting, If someone try to post a new story with old
>> post's id what will happen?*
>>
>> How could that happen ? Isn't your post id a
*Now instead of posting, If someone try to post a new story with old post's
id what will happen?*
How could that happen ? Isn't your post id a database auto-increment ?
On Fri, Aug 19, 2011 at 10:09 AM, Prabha vathi wrote:
> Hi,
>
> I have created a site, where people can also post. If we pass i
sc,Build.title desc, Build.id desc')
)
),
$this->Build->find('first',array(
'conditions'=>array(
'OR'=>array(
array(
'Build.year_built'=>$build['Build']['year_built'],
'Build.title >='=>$build['Build'][
7;Build']['id']
),
'order'=>array('Build.year_built asc,Build.title asc, Build.id asc')
)
)
)
);
On Tue, Aug 16, 2011 at 8:16 PM, Krissy Masters
wrote:
> I am thinking the value has to be unique as if it was an id or something
> along those line
#x27;order'=>array('Build.year_built asc,Build.title asc')
)
)
)
);
On Tue, Aug 16, 2011 at 7:24 PM, Krissy Masters
wrote:
> Yeah the plural was typo, but the A,B,C is representing "title" field
> which could be anything entered as a title by the user.
>
&
What is the letters' field name ? (ie. A, B...)
PS: I think you mean $this->Build->find , not $this->Builds->find
On Tue, Aug 16, 2011 at 6:31 PM, Krissy Masters
wrote:
> I am trying to get my neighbors query based in my 'year_built' value
> (2001 to 2011 as values) and placed in alphabetical o
I totally agree. Thanks a lot for your help :)
On Mon, Aug 15, 2011 at 11:38 PM, 0x20h wrote:
> Am 15.08.2011 21:08, schrieb Teddy Zeenny:
> > Oh you are definitely right. I made up the example as I was writing
> > the post, this is not a real case in my application.. Besides
very time they run concurrently. SELECT FOR UPDATE on the other hand would
only make them wait for each other if, in that particular instance, they had
common records.
On Mon, Aug 15, 2011 at 9:29 PM, 0x20h wrote:
> Am 14.08.2011 12:46, schrieb Teddy Zeenny:
> > That is an interesting id
gt; }
>
> didn't try that, just a shot in the blue. Of course the named lock
> should be unique on what you want to lock.
>
>
> Am 10.08.2011 19:10, schrieb Teddy Zeenny:
> > Hi,
> >
> > Is there a way in cakephp to use SELECT .. FOR UPDATE (for InnoDB row
&
n
//the actual query would be like this: SELECT * FROM users where id=1 FOR
UPDATE
Thanks :)
On Fri, Aug 12, 2011 at 9:29 PM, Dr. Loboto wrote:
> Start transaction, select, save, close transaction. Something like
> this:
>
> $DS = $this->getDataSource();
> $DS->begin();
&g
DataSource();
> $DS->begin();
> $this->find(...);
> if ($this->save(...)) {
> $DS->commit();}
>
> else {
> $DS->rollback();
>
> }
>
> On 11 авг, 00:10, Teddy Zeenny wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Is there a w
Hi,
Is there a way in cakephp to use SELECT .. FOR UPDATE (for InnoDB row
level locking) without using the $Model::query function (as this is
highly not recommended) ?
If not, does anyone know an alternative ?
Thanks,
Teddy
--
Our newest site for the community: CakePHP Video Tutorials
http:/
49 matches
Mail list logo