Monday, May 31, 2010

Re: CakeFest 2010 Website Launched

You'll have one in the UK sometime hopefully, or maybe one day I'll
have made enough money to trek around the world somewhere to join you
guys :)

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: 1.2.7, Application and plugin intercommunication, looking for ideas, comments, etc.

2nd and last bump! Would very much like some comments :)

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Using fixtures

I think they are imported automatically during the test.

On Mon, May 31, 2010 at 6:04 PM, Yannick ANSQUER <tajimanokami@gmail.com> wrote:
Hi

I've created a fixture file like in
http://book.cakephp.org/view/1201/Preparing-test-data
but i didn't understand how to populate my database with it.

Anyone knows ?

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 to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en



--
Bogdan Iulian Bursuc

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Delete and get 1 to replace

Variant: keep current page number and per page count, retrieve row for
add as page number [current page] * [per page] + 1 paginated by one
record.

On Jun 1, 8:01 am, Dave <m...@davemaharaj.com> wrote:
> Just stumped how to go about this one.
>
> Start with a paginated table with 20 records. You have the "Delete" as
> normal at the end of each <TR> but its done via ajax so you remove the
> row, now how would you get the next record? All the records would
> shift up so you now need to get what would have been record 21 to add
> to the bottom of the table?So as you delete 1 record another gets
> added, so you lways have 20 records in the table.
>
> Thanks,
>
> Dave

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: $pageTitle not working

This was the one thing I hated that they changed. Took me the longest
to go through and update every controller.

The time spent changing this was greater than the time spent upgrading
to 1.3 as a whole.

On May 31, 6:03 pm, Sergei <yatse...@gmail.com> wrote:
> $this->pageTitle was removed in 1.3. Use only $this-
>
> >set( "title_for_layout", "First Page" ) in controller or template.
>
> On Jun 1, 8:21 am, SeeVik <vikramvmalhotra1...@gmail.com> wrote:
>
> > Hello all
>
> > I just started with CakePHP 1.3.1. I am trying to set the title of a
> > page. I have defined the title_for_layout in the default layout as
> > well, still the view does not get the title I want. Instead it
> > displays the name of controller. Although setting the title_for_layout
> > in the view template works fine. Here's what I am doing....
>
> > // /app/controllers/nodes_controller.php
> > class NodesController {
> >   $name = "Nodes";
> >   $uses = array();
> >   $helpers = array( "Html" );
> >   function index() {
> >      $this->pageTitle = "First Page"; // This does not work
> >   }
>
> > }
>
> > // /app/views/nodes/index.ctp
> > <php $this->set( "title_for_layout", "First Page" ); // This works ?>
>
> > What am I doing wrong here? Can somebody help me out.
>
> > Thanks and Regards
> > ShiVik

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: $pageTitle not working

$this->pageTitle was removed in 1.3. Use only $this-
>set( "title_for_layout", "First Page" ) in controller or template.


On Jun 1, 8:21 am, SeeVik <vikramvmalhotra1...@gmail.com> wrote:
> Hello all
>
> I just started with CakePHP 1.3.1. I am trying to set the title of a
> page. I have defined the title_for_layout in the default layout as
> well, still the view does not get the title I want. Instead it
> displays the name of controller. Although setting the title_for_layout
> in the view template works fine. Here's what I am doing....
>
> // /app/controllers/nodes_controller.php
> class NodesController {
>   $name = "Nodes";
>   $uses = array();
>   $helpers = array( "Html" );
>   function index() {
>      $this->pageTitle = "First Page"; // This does not work
>   }
>
> }
>
> // /app/views/nodes/index.ctp
> <php $this->set( "title_for_layout", "First Page" ); // This works ?>
>
> What am I doing wrong here? Can somebody help me out.
>
> Thanks and Regards
> ShiVik

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Delete and get 1 to replace

Just stumped how to go about this one.

Start with a paginated table with 20 records. You have the "Delete" as
normal at the end of each <TR> but its done via ajax so you remove the
row, now how would you get the next record? All the records would
shift up so you now need to get what would have been record 21 to add
to the bottom of the table?So as you delete 1 record another gets
added, so you lways have 20 records in the table.

Thanks,

Dave

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Using schema shell to add a new table

Hi Folks, I've seen similar posts to this, but I'm still not having
any luck. I'm playing with the schema shell feature for the first time
on an existing app written in cakephp 1.2.7. I've generated a
schema.php file with an accurate depiction of my mysql database schema
using cake schema generate. Now I'd like to simulate that a separate
developer has added a table to the schema. So I copy the schema.php as
schema_2.php, add a new array definition representing a fake table
called street:

var $streets = array(
'id' => array('type' => 'integer', 'null' => false, 'default' =>
NULL, 'key' => 'primary'),
'name' => array('type' => 'string', 'null' => true, 'default' =>
NULL, 'length' => 50),
'type' => array('type' => 'string', 'null' => true, 'default' =>
NULL),
'created' => array('type' => 'datetime', 'null' => true, 'default'
=> NULL),
'modified' => array('type' => 'datetime', 'null' => true, 'default'
=> NULL),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' =>
1))
);

I also created a model for this table in street.php:

<?
class Street extends AppModel
{
var $name = 'Street';

}
?>

I then try this: cake schema run update -dry -s 2. But this for some
reason assumes the street table already exists and indicates that it
will ALTER the table, which is obviously not what I want to do. I also
tried cake schema run create -dry -s 2. This is much more drastic, it
wants to drop all my tables then re-create them, something I
definitely don't want to do.

I'm running:
php 5.3
cakephp 1.2.7
apache2
mysql 5.1.47
mac os x (snow leopard)

Any ideas would be greatly appreciated. Thanks in advance.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

$pageTitle not working

Hello all

I just started with CakePHP 1.3.1. I am trying to set the title of a
page. I have defined the title_for_layout in the default layout as
well, still the view does not get the title I want. Instead it
displays the name of controller. Although setting the title_for_layout
in the view template works fine. Here's what I am doing....

// /app/controllers/nodes_controller.php
class NodesController {
$name = "Nodes";
$uses = array();
$helpers = array( "Html" );
function index() {
$this->pageTitle = "First Page"; // This does not work
}
}

// /app/views/nodes/index.ctp
<php $this->set( "title_for_layout", "First Page" ); // This works ?>

What am I doing wrong here? Can somebody help me out.

Thanks and Regards
ShiVik

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

cakephp.lighthouseapp.com does not show tickets

When visiting http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets
with Firefox 3.6.3 no tickets are shown. div at looks like that:

<div id="ticket-list-wrapper" class="data-list hidden">

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

i18n CLI

Hi

I'm trying to use i18n in command line interface with cake 1.3 on ms
windows.

cake i18n works and i can choose E/I/H/Q

Trying to choose I and then i got warning :

include_once(D:\wamp\www\cakephp\cake\console\config\database.php):
failed to open stream: No such file or directory in D:\wamp\www\cakephp
\cake\libs\model\connection_manager.php on line 24

I understood that it was looking in the wrong directory but i didn't
changed paths in my installation.

Someone knows how to do ?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: helper to do a sliding animation

Having looked at a few of them. They all seem pretty much the same.
Most of them do vertical/horizontal scrolling, circular scrolling,
configurable scrolling intervals, etc.

I used jQuery Scrollable just because it was the first one I came
across. It might be a little better than some of the other scripts
since it preloads the images, but the implementation is kinda weird
(you have a really long fixed width div inside another one with
overflow set to hidden). It can also be integrated with jQuery
Mousewheel (as on the Rotten site), allowing you to scroll through the
gallery with your mousehweel. But that should be fairly easy to do
with any of the other slider scripts as well.

The bradblogging.com article is a nice little comparison of different
slideshow scripts though. Those might be more convenient if you're
trying to display images (jCarousel and Scrollable can be used as a
navigation element for things other than images).

On May 31, 1:47 am, barbi <barbi.br...@gmail.com> wrote:
> Jcarousel is one of the earliest plugins, but I have found it to be a
> bit bloated sometimes. Try jcarousellite instead.
> Other alternatives - cycle, cycle light, LoopedSlider, easy slider
>
> http://bradblogging.com/jquery/9-jquery-slideshow-applications-you-ca...
> has a good collection of sliders, roughly arranged by ease of
> implementation and flexibility.
>
> Thanks,
>
> Bharadwajhttp://webhostingangel.com
>
> On May 31, 1:18 am, Bryan Lim <ytbr...@gmail.com> wrote:
>
> > jCarousel is exactly what I am looking for!
>
> > Curious, any alternative to jCarousel ?
>
> > On May 31, 2:14 pm, Bryan Lim <ytbr...@gmail.com> wrote:
>
> > > i see. Thanks guys. Will look into them !!
>
> > > On May 31, 2:01 am, calvin <cal...@rottenrecords.com> wrote:
>
> > > > On our site (rottenrecords.com, the "new releases" and "featured
> > > > videos" panels on the homepage) we use the jQuery Scrollable plugin. I
> > > > made a helper for it, but it's not really necessary.
>
> > > > Oh, and that WWF interface is done in flash--that's why it's all
> > > > pixelated and blurry-looking.
>
> > > > On May 30, 4:08 am, Bryan Lim <ytbr...@gmail.com> wrote:
>
> > > > > Hi all,
>
> > > > > I am looking for a helper to do aslidinganimation.
>
> > > > > It is found inhttp://www.worldwildlife.org/undertheyearoftiger
> > > > >animationwhere you can go forward or backward accordingly. if you use
> > > > > firebug, it's under div class="whatsInside"
>
> > > > > What do we call this kinda of widget?
>
> > > > > Thanks!
> > > > > Bryan

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

EmailComponent - BAD HELO

Hi guys, im having problems using the Email component with SMTP...

app_controller:

$this->Email->smtpOptions = array(
'port'=>'465',
'timeout'=>'30',
'host' => 'ssl://<host>',
'username'=>'<username>',
'password'=>'123456'
);
/* Set delivery method */
$this->Email->delivery = 'smtp';

Then in my users controller i have this:

$this->Email->from = 'Test <hostname>';
$this->Email->to = '<'.$row['User']['email'].'>';
$this->Email->subject = 'Test';
//$this->Email->sendAs = 'both'; // because we like to send pretty
mail
$this->Email->template = 'forgot_password';
$this->set('user', $row);
$this->Email->send();

When i run this action, i get the following:
550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) ...

I've also tried setting the 'client' key in the smptOptions array to
the same host, but im still getting:
550-"REJECTED - Bad HELO - Host impersonating

Is anyone having this issues with this core component using SMTP and
SSL options?

Any help is appreciated! :)

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Paginator, belongsTo and a model using data from an external DB

hello.

my app has 3 models:

- Order belongsTo Shipment
- Order belongsTo Customer

Customer data is retrieved from an external DB (customers are shared
across other non-php apps)

i'm trying to paginate results from Order::index();

when i order by Customer.name cake throws some SQL errors.

i bet the external db is the culprit, because paginator isn't loading
all data with one single query.

what can i do to avoid this?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: CakePHP - Auth

The same issue has been discussed in this thread:
http://groups.google.com/group/cake-php/browse_thread/thread/728bd1da64e93897/e2f3936ae2072278?lnk=gst&q=login+email+username#e2f3936ae2072278

See how the original poster did it, you should be able to do something
similar.
Enjoy,
John


On May 31, 1:56 pm, Saurav <cance...@gmail.com> wrote:
> Hi
>
> I am using the following code to authenticate a user:
>
> function beforeFilter() {
>                 $this->Auth->fields = array('username' => 'email',
> 'password' => 'password');
>
>         }
>
> Its working fine!  But, I want cakephp to validate the auth with
> username = 'email' OR username = 'username'
>
> I tried the following but its not working:
>
> function beforeFilter() {
>                 $this->Auth->fields = array('username' =>
> array('email','username'), 'password' => 'password');
>
>         }
>
> Can anyone help me with this pls?
>
> Many 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 to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Problem with saveField() method

I've resolved the problem:
I have to add 'callbacks' => false to the validation parameter.

Thaks!

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Using fixtures

Hi

I've created a fixture file like in
http://book.cakephp.org/view/1201/Preparing-test-data
but i didn't understand how to populate my database with it.

Anyone knows ?

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 to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Generated Source of webpage using cURL or any other methods in PHP?

Sorry Tiago.
Sorry Bharadwaj.

I think both of you misunderstood my requirement. Please note the word
"generated source" not "source of the webpage".
Actually, by using the method suggested by Bharadwaj, we will get the
source of a webpage, but in that we don't get the source of some
special items generated by javascript or any other scripts.

Hope you got the idea.

Thanks.


On May 31, 11:43 am, Bharadwaj Parthasarathy <barbi.br...@gmail.com>
wrote:
> Try this
>
> <?php
>
>         $url = "http://www.google.com/intl/en/about.html";
>         $tw = curl_init();
>         curl_setopt($tw, CURLOPT_URL, $url);
>         curl_setopt($tw, CURLOPT_RETURNTRANSFER, TRUE);
>         $search_res = curl_exec($tw);
>         curl_close($tw);
>
>         echo substr($search_res, 0, 600); // here is your source code, do  
> whatever you want with this
>
> ?>
>
> On 31-May-10, at 2:58 AM, si-mon wrote:
>
> > Hi all,
>
> > How do we get the generated source of a page using cURL? Or any other
> > method(s) for this?
> > Please...
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this  
> > group athttp://groups.google.com/group/cake-php?hl=en

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: The page isn't redirecting properly

vikas,

I have solved that an error "The page redirected isn't properly'. In
config/boostrap.php they did header redirect according to www
existence so i have commented it.
Now i having black screen.

Also I followed your steps but there is no one line you have mentioned
in the file config/core.php so i have added that line
(Configure::write('App.baseUrl', env('SCRIPT_NAME'));) in that file.
Although no change in the result. The home page is blank.

Note: I'm tying in the localhost.

On May 31, 5:43 pm, vikas bose <chipheardwe...@gmail.com> wrote:
> hai
> now u goto the core.php file to make some changes on it, see the line number
> 56 Configure::write('App.baseUrl', env('SCRIPT_NAME')); if it is commented
> then open it so that your url would behttp://example.com/index.php/<controller>/<action>/<parm1>/<parm2>....
> etc.
> because some time the .htaccess file are not working properly so that u
> apply this step definitely u get the good result.And I hope so that it will
> help u more.
>
> On Sun, May 30, 2010 at 10:24 PM, karuppu <gkaruppusamy2...@gmail.com>wrote:
>
> > Thank you very much for your kind reply. I'm using xamp so i have
> > installed that script in the location htdocs/karuppu/test but when i
> > try to load the home page i getting that error (The page isn't
> > redirecting properly). My default controller is 'actions' and an
> > action (method) is 'home'. That is defined in the routes.php in the
> > config folder.
>
> > Router::connect('/', array('controller' => 'auctions', 'action' =>
> > 'home'));
>
> > Also I have set the configuration variable that is $config['App']
> > ['url'] = 'http://localhost'in my config.php that is located in the
> > config (app) folder;
>
> > Also rule in the htaccess as following
>
> > <IfModule mod_rewrite.c>
> >   RewriteEngine on
> >   RewriteRule    ^$ app/webroot/    [L]
> >   RewriteRule    (.*) app/webroot/$1 [L]
> > </IfModule>
>
> > - karuppusamy
>
> > On May 29, 4:24 pm, John Andersen <j.andersen...@gmail.com> wrote:
> > > Please provide more information - like which controller and which
> > > action you are trying to access through your browser (the url). Then
> > > show your controllers code for the corresponding action. Maybe then we
> > > will better be able to point you somewhere :)
> > > Enjoy,
> > >    John
>
> > > On May 29, 9:46 am, karuppu <gkaruppusamy2...@gmail.com> wrote:
>
> > > > Dear all,
>
> > > > I have installed my site created in cakePHP in local environment (my
> > > > pc) unfortunately when i run that on browser that browser is showing a
> > > > following error message "Thepageisn'tredirectingproperly". I
> > > > couldn't find what is the cause of this. Kindly show the way to me.
>
> > > > Thank you
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: The page isn't redirecting properly

hai
now u goto the core.php file to make some changes on it, see the line number 56 Configure::write('App.baseUrl', env('SCRIPT_NAME')); if it is commented then open it so that your url would be http://example.com/index.php/<controller>/<action>/<parm1>/<parm2>.... etc.
because some time the .htaccess file are not working properly so that u apply this step definitely u get the good result.And I hope so that it will help u more.

On Sun, May 30, 2010 at 10:24 PM, karuppu <gkaruppusamy2008@gmail.com> wrote:
Thank you very much for your kind reply. I'm using xamp so i have
installed that script in the location htdocs/karuppu/test but when i
try to load the home page i getting that error (The page isn't
redirecting properly). My default controller is 'actions' and an
action (method) is 'home'. That is defined in the routes.php in the
config folder.

Router::connect('/', array('controller' => 'auctions', 'action' =>
'home'));

Also I have set the configuration variable that is $config['App']
['url'] = 'http://localhost' in my config.php that is located in the
config (app) folder;

Also rule in the htaccess as following

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule    ^$ app/webroot/    [L]
  RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>


- karuppusamy

On May 29, 4:24 pm, John Andersen <j.andersen...@gmail.com> wrote:
> Please provide more information - like which controller and which
> action you are trying to access through your browser (the url). Then
> show your controllers code for the corresponding action. Maybe then we
> will better be able to point you somewhere :)
> Enjoy,
>    John
>
> On May 29, 9:46 am, karuppu <gkaruppusamy2...@gmail.com> wrote:
>
> > Dear all,
>
> > I have installed my site created in cakePHP in local environment (my
> > pc) unfortunately when i run that on browser that browser is showing a
> > following error message "Thepageisn'tredirectingproperly". I
> > couldn't find what is the cause of this. Kindly show the way to me.
>
> > Thank you

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Generated Source of webpage using cURL or any other methods in PHP?

Probably i did not understand what are you asking, but for me its too
simple.

wget <URL>
fetch <URL>
curl <URL>

What exactly you need to do?


Em Seg, 2010-05-31 às 00:58 -0700, si-mon escreveu:
> Hi all,
>
> How do we get the generated source of a page using cURL? Or any other
> method(s) for this?
> Please...
>
> 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 group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: helper naming convention

you must have made an error
because miles' version does work and yours is not really the way to go

if you want to name it timeline.php (all lowercase), its supposed to
be:

Class: TimelineHelper
File:timeline.php
include: $helpers=array('Timeline');


On 31 Mai, 06:00, Bryan Lim <ytbr...@gmail.com> wrote:
> Hi all,
>
> I used what Miles suggested. But don't work. Right now, I am using
> this:
>
> Class: TimeLineHelper
> File:timeline.php
> include: $helpers=array('timeline');
>
> which is working fine.
>
> am still curious why the suggested namiing don't work ?
>
> /b
>
> On May 31, 4:46 am, Miles J <mileswjohn...@gmail.com> wrote:
>
>
>
> > Yeah Cakes naming conventions can be confusing:
>
> > Class: TimeLineHelper
> > File: time_line.php
> > Include: $helpers = array('TimeLine')
>
> > On May 29, 8:03 pm, Steve Love <stevel...@gmail.com> wrote:
>
> > > The error message gives you a subtle hint.
> > > With a file named time_line.php, try defining it in the controller as:
> > > var $helpers = array('TimeLine');
>
> > > Steve
>
> > > On May 29, 8:58 pm, Bryan Lim <ytbr...@gmail.com> wrote:
>
> > > > Hi all,
>
> > > > Can someone please tell me what did I do wrong with the naming
> > > > convention?
>
> > > > I named myhelpertime_line.php. It is called class TimeLineHelper
> > > > extends AppHelper.
>
> > > > At the controller, var $helpers = array("time_line");
>
> > > > But it gives me error that TimeLineHelper is not found.
>
> > > > So I change time_line.php to tl.php. TimeLineHelper to TlHelper.
> > > > $helpers = array("tl");
>
> > > > it works.
>
> > > > I am using cakephp 1.3.
>
> > > > Thanks!
> > > > Bryan

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Problem with saveField() method

Hi,
I've tryed to call the saveField() method in the afterSave() callback
of a behaviour but it don't work.
In particular with one field, after the add operation, the value don't
change.
With another field after the add operation I get a white page, but I
go to the index view I see that the value was changed, but it insert
2 record instead tha 1.

Can you help me plese?
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 to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

CakePHP - Auth

Hi

I am using the following code to authenticate a user:


function beforeFilter() {
$this->Auth->fields = array('username' => 'email',
'password' => 'password');

}

Its working fine! But, I want cakephp to validate the auth with
username = 'email' OR username = 'username'

I tried the following but its not working:


function beforeFilter() {
$this->Auth->fields = array('username' =>
array('email','username'), 'password' => 'password');

}

Can anyone help me with this pls?


Many 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 to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: using cakephp for social webapp

That's too vague a post and certainly not CakePHP specific for you to
get an answer. Have you got this schema working in a non-cake app and
if so which part are you having problems duplicating in CakePHP?

HTH

Paul.

On May 29, 11:23 am, Rahul R <rahul8...@gmail.com> wrote:
> helo everyone ,
> I am newbie to cakephp .  i am trying to implement an interaction platform
> between alumnis and students of my college . i coded significantly in php
> and javascript , but couldnt come up with a channel concept. where is i
> have  channels for every alumni not student , so that they can be asked
> various questions in that particular channels . (similar to forum but not
> exactly like that) . i would be glad i f you could help me getting started
> with this using cakephp.
>
> Thanking You
>
> Rahul

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Problem with database cascade relationships.

You can't specify a condition on a hasMany association as Cake cannot
create a join on such an association. In order to get a one to many
result set you need to run 2 queries, 1 to find the product and
another to find it's many types as such you are getting a logical
error thrown back at you.

You need to look at forcing joins using

http://book.cakephp.org/view/86/Creating-and-Destroying-Associations-on-the-Fly

or

http://book.cakephp.org/view/872/Joining-tables

HTH

Paul

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: HABTM Containable find('all') question

Your double join on the same table is fine, I just didn't notice it.

Can you try this instead?

SELECT DISTINCT User.id, User.username FROM users AS User
LEFT JOIN friends AS Friend ON (User.id = Friend.user_id AND
Friend.approved IN(0,1))
LEFT JOIN friends AS Admirer ON (User.id = Admirer.friend_id AND
Admirer.approved IN(0,1))

Does this give the desired results where the Friend count is the
amount of records where friends.user_id matches the current user and
the Admirer count is the number of friends where friends.friend_id
matches the current users.

If this works and pulls the data you are sure it should pull then we
simply need to force some joins in Cake using:

http://book.cakephp.org/view/86/Creating-and-Destroying-Associations-on-the-Fly

or

http://book.cakephp.org/view/872/Joining-tables

HTH

Paul

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Import Vendor inside Shell class

I just fixed above problem.

Somehow App::import('Vendor', 'MyClass/MyClass'); didn't work. What
does work is : App::import('Vendor', 'MyClass', array('file' =>
'MyClass'.DS.'MyClass.php'));

On May 31, 10:33 am, Edwin <edwink...@gmail.com> wrote:
> Hi all,
>
> I'm having trouble importing a vendor class inside a Shell class. I've
> tried to use App::import('Vendor', 'MyClass/MyClass'); but it doesn't
> seem to work.
>
> If i'm trying to create a new instance of the imported class I get the
> following error:
>
> "Fatal error: Class 'MyClass' not found"
>
> Can anybody point me in the right direction what I'm doing wrong?
>
> 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 to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: another timeline helper question

I don understand the example part http://bakery.cakephp.org/leafs/view/81

where the view is used to render the json.

<?php // /app/main_activities/ajax_timeline.ctp
$xpaths = array(
'title' => '/title',
'start' => '/from',
'end' => '/to',
'color' => '/color'
);
echo $timeline->renderJSON($data['SubActivity'],array(),$xpaths);
?>

The path "/app/main_activities/ajax_timeline.ctp" doesn't make sense
too.

On May 31, 12:07 pm, Bryan Lim <ytbr...@gmail.com> wrote:
> Hi all,
>
> how do I get $data fromhttp://bakery.cakephp.org/leafs/view/81
>
> cakephp is complaining undefined variable data.
>
> I am new to both php and cakephp.
>
> need help!
>
> /b

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: helper to do a sliding animation

Jcarousel is one of the earliest plugins, but I have found it to be a
bit bloated sometimes. Try jcarousellite instead.
Other alternatives - cycle, cycle light, LoopedSlider, easy slider

http://bradblogging.com/jquery/9-jquery-slideshow-applications-you-cannot-miss/
has a good collection of sliders, roughly arranged by ease of
implementation and flexibility.

Thanks,

Bharadwaj
http://webhostingangel.com

On May 31, 1:18 am, Bryan Lim <ytbr...@gmail.com> wrote:
> jCarousel is exactly what I am looking for!
>
> Curious, any alternative to jCarousel ?
>
> On May 31, 2:14 pm, Bryan Lim <ytbr...@gmail.com> wrote:
>
> > i see. Thanks guys. Will look into them !!
>
> > On May 31, 2:01 am, calvin <cal...@rottenrecords.com> wrote:
>
> > > On our site (rottenrecords.com, the "new releases" and "featured
> > > videos" panels on the homepage) we use the jQuery Scrollable plugin. I
> > > made a helper for it, but it's not really necessary.
>
> > > Oh, and that WWF interface is done in flash--that's why it's all
> > > pixelated and blurry-looking.
>
> > > On May 30, 4:08 am, Bryan Lim <ytbr...@gmail.com> wrote:
>
> > > > Hi all,
>
> > > > I am looking for a helper to do aslidinganimation.
>
> > > > It is found inhttp://www.worldwildlife.org/undertheyearof tiger
> > > >animationwhere you can go forward or backward accordingly. if you use
> > > > firebug, it's under div class="whatsInside"
>
> > > > What do we call this kinda of widget?
>
> > > > Thanks!
> > > > Bryan

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Generated Source of webpage using cURL or any other methods in PHP?

Try this

<?php

$tw = curl_init();
curl_setopt($tw, CURLOPT_URL, $url);
curl_setopt($tw, CURLOPT_RETURNTRANSFER, TRUE);
$search_res = curl_exec($tw);
curl_close($tw);


echo substr($search_res, 0, 600); // here is your source code, do whatever you want with this


?>





On 31-May-10, at 2:58 AM, si-mon wrote:

Hi all,

How do we get the generated source of a page using cURL? Or any other
method(s) for this?
Please...

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Import Vendor inside Shell class

Hi all,

I'm having trouble importing a vendor class inside a Shell class. I've
tried to use App::import('Vendor', 'MyClass/MyClass'); but it doesn't
seem to work.

If i'm trying to create a new instance of the imported class I get the
following error:

"Fatal error: Class 'MyClass' not found"

Can anybody point me in the right direction what I'm doing wrong?

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 to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Bake Shell in CakePHP 1.3.1

Besides the filecache errors described in other posts the download of
CakePHP 1.3.1 brought me a broken Bake Shell which reports after
running "cake bake all":
Notice: Undefined offset: 0 in D:\xampp\htdocs\cake\cake\console\libs
\tasks\temp
late.php on line 183

Notice: Undefined offset: 1 in D:\xampp\htdocs\cake\cake\console\libs
\tasks\temp
late.php on line 184
Could not find template for model

However, there is no Error message, but nothing is written to the
disk!

Running "cake bake model" for a database table reports the same
notices, but produces a php-file for the model without any content!

With cake 1.3.0 I did not have any of these problems.
Anyone got an idea?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Generated Source of webpage using cURL or any other methods in PHP?

Hi all,

How do we get the generated source of a page using cURL? Or any other
method(s) for this?
Please...

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Sunday, May 30, 2010

Re: user manager system(help me)

If you need a row-level-acl solution, you can check out the SuperAuth
plugin that extends Auth and Acl for row-level-acl, the repository is
located at http://www.github.com/Theaxiom/SuperAuth

On May 29, 11:48 pm, John Andersen <j.andersen...@gmail.com> wrote:
> Have a look at the CakePHP manual at:http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application
>
> Is that not what you want? Or at least something with which you can
> expand on!
> Enjoy,
>    John
>
> On May 30, 7:38 am, hoss7 <hoss...@gmail.com> wrote:
>
>
>
> > hi i am new in cakephp
> > i want some user manager system(with Permission) for cakephp 1.3
>
> > link this:http://www.studiocanaria.com/articles/cakephp_auth_component_users_gr...
>
> > i cant run this code in cakephp 1.3

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: ACL users permission settings

If you need a row-level-acl solution, you can check out the SuperAuth
plugin that extends Auth and Acl for row-level-acl, the repository is
located at http://www.github.com/Theaxiom/SuperAuth

On May 29, 11:51 pm, John Andersen <j.andersen...@gmail.com> wrote:
> Have a look at the sample application in the CakePHP manual at:http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application
>
> Maybe that you can use as a beginning and then expand on it?
> Enjoy,
>    John
>
> On May 28, 8:28 am, ET3 <earthtechnolo...@gmail.com> wrote:
>
>
>
> > I am developing a system where I need to set permission for users to
> > access different groups. I need to build an interface in admin panel
> > so that admin can set this access permission for users. Can any one
> > give me some idea and some source code for this?

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: helper to do a sliding animation

Jcarousel is one of the earliest plugins, but I found it to be a bit
bloated sometimes. Try jcarousellite instead.
Other alternatives - cycle, cycle light, LoopedSlider, easy slider

http://bradblogging.com/jquery/9-jquery-slideshow-applications-you-cannot-miss/
has a good collection of sliders, roughly arranged by ease of
implementation and flexibility.

Thanks,

Bharadwaj
http://webhostingangel.com

On 31-May-10, at 1:18 AM, Bryan Lim wrote:

> jCarousel is exactly what I am looking for!
>
> Curious, any alternative to jCarousel ?
>
> On May 31, 2:14 pm, Bryan Lim <ytbr...@gmail.com> wrote:
>> i see. Thanks guys. Will look into them !!
>>
>> On May 31, 2:01 am, calvin <cal...@rottenrecords.com> wrote:
>>
>>> On our site (rottenrecords.com, the "new releases" and "featured
>>> videos" panels on the homepage) we use the jQuery Scrollable
>>> plugin. I
>>> made a helper for it, but it's not really necessary.
>>
>>> Oh, and that WWF interface is done in flash--that's why it's all
>>> pixelated and blurry-looking.
>>
>>> On May 30, 4:08 am, Bryan Lim <ytbr...@gmail.com> wrote:
>>
>>>> Hi all,
>>
>>>> I am looking for a helper to do a sliding animation.
>>
>>>> It is found inhttp://www.worldwildlife.org/undertheyear of tiger
>>>> animation where you can go forward or backward accordingly. if
>>>> you use
>>>> firebug, it's under div class="whatsInside"
>>
>>>> What do we call this kinda of widget?
>>
>>>> Thanks!
>>>> Bryan
>
> 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 group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this
> group at http://groups.google.com/group/cake-php?hl=en

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: helper to do a sliding animation

jCarousel is exactly what I am looking for!

Curious, any alternative to jCarousel ?

On May 31, 2:14 pm, Bryan Lim <ytbr...@gmail.com> wrote:
> i see. Thanks guys. Will look into them !!
>
> On May 31, 2:01 am, calvin <cal...@rottenrecords.com> wrote:
>
> > On our site (rottenrecords.com, the "new releases" and "featured
> > videos" panels on the homepage) we use the jQuery Scrollable plugin. I
> > made a helper for it, but it's not really necessary.
>
> > Oh, and that WWF interface is done in flash--that's why it's all
> > pixelated and blurry-looking.
>
> > On May 30, 4:08 am, Bryan Lim <ytbr...@gmail.com> wrote:
>
> > > Hi all,
>
> > > I am looking for a helper to do a sliding animation.
>
> > > It is found inhttp://www.worldwildlife.org/undertheyear of tiger
> > > animation where you can go forward or backward accordingly. if you use
> > > firebug, it's under div class="whatsInside"
>
> > > What do we call this kinda of widget?
>
> > > Thanks!
> > > Bryan

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: helper to do a sliding animation

i see. Thanks guys. Will look into them !!


On May 31, 2:01 am, calvin <cal...@rottenrecords.com> wrote:
> On our site (rottenrecords.com, the "new releases" and "featured
> videos" panels on the homepage) we use the jQuery Scrollable plugin. I
> made a helper for it, but it's not really necessary.
>
> Oh, and that WWF interface is done in flash--that's why it's all
> pixelated and blurry-looking.
>
> On May 30, 4:08 am, Bryan Lim <ytbr...@gmail.com> wrote:
>
> > Hi all,
>
> > I am looking for a helper to do a sliding animation.
>
> > It is found inhttp://www.worldwildlife.org/underthe year of tiger
> > animation where you can go forward or backward accordingly. if you use
> > firebug, it's under div class="whatsInside"
>
> > What do we call this kinda of widget?
>
> > Thanks!
> > Bryan

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: 1.2.7, Application and plugin intercommunication, looking for ideas, comments, etc.

Bump! Any comments, ideas, thoughts??

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

CakeFest 2010 Website Launched

The website for CakeFest 2010 has just been launched.

http://cakefest.org

You can now signup if you are interested in attending.

Tickets will be on sale soon.
People interested in speaking at cakefest can submit a talk proposal
via the dashboard, once you are logged in.

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: The page isn't redirecting properly

Thank you very much for your kind reply. I'm using xamp so i have
installed that script in the location htdocs/karuppu/test but when i
try to load the home page i getting that error (The page isn't
redirecting properly). My default controller is 'actions' and an
action (method) is 'home'. That is defined in the routes.php in the
config folder.

Router::connect('/', array('controller' => 'auctions', 'action' =>
'home'));

Also I have set the configuration variable that is $config['App']
['url'] = 'http://localhost' in my config.php that is located in the
config (app) folder;

Also rule in the htaccess as following

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>


- karuppusamy

On May 29, 4:24 pm, John Andersen <j.andersen...@gmail.com> wrote:
> Please provide more information - like which controller and which
> action you are trying to access through your browser (the url). Then
> show your controllers code for the corresponding action. Maybe then we
> will better be able to point you somewhere :)
> Enjoy,
>    John
>
> On May 29, 9:46 am, karuppu <gkaruppusamy2...@gmail.com> wrote:
>
> > Dear all,
>
> > I have installed my site created in cakePHP in local environment (my
> > pc) unfortunately when i run that on browser that browser is showing a
> > following error message "Thepageisn'tredirectingproperly". I
> > couldn't find what is the cause of this. Kindly show the way to me.
>
> > Thank you

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

another timeline helper question

Hi all,

how do I get $data from http://bakery.cakephp.org/leafs/view/81

cakephp is complaining undefined variable data.

I am new to both php and cakephp.

need help!

/b

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: helper naming convention

Hi all,

I used what Miles suggested. But don't work. Right now, I am using
this:

Class: TimeLineHelper
File:timeline.php
include: $helpers=array('timeline');

which is working fine.

am still curious why the suggested namiing don't work ?

/b

On May 31, 4:46 am, Miles J <mileswjohn...@gmail.com> wrote:
> Yeah Cakes naming conventions can be confusing:
>
> Class: TimeLineHelper
> File: time_line.php
> Include: $helpers = array('TimeLine')
>
> On May 29, 8:03 pm, Steve Love <stevel...@gmail.com> wrote:
>
> > The error message gives you a subtle hint.
> > With a file named time_line.php, try defining it in the controller as:
> > var $helpers = array('TimeLine');
>
> > Steve
>
> > On May 29, 8:58 pm, Bryan Lim <ytbr...@gmail.com> wrote:
>
> > > Hi all,
>
> > > Can someone please tell me what did I do wrong with the naming
> > > convention?
>
> > > I named myhelpertime_line.php. It is called class TimeLineHelper
> > > extends AppHelper.
>
> > > At the controller, var $helpers = array("time_line");
>
> > > But it gives me error that TimeLineHelper is not found.
>
> > > So I change time_line.php to tl.php. TimeLineHelper to TlHelper.
> > > $helpers = array("tl");
>
> > > it works.
>
> > > I am using cakephp 1.3.
>
> > > Thanks!
> > > Bryan

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

HtmlHelper within Helper causes sql_dump.ctp to fail.

Hello,

I have a quirky problem which I just noticed while preparing to
optimize the application my team is building. I haven't set the debug
value within config/core.php to "2" in a couple weeks to look at the
SQL output, and noticed today that it was completely broken. After
tinkering around a little, it seems that by using "var $helpers =
array('Html');" within MyHelper so that we have access to $this->Html
methods, it causes cake/libs/views/elements/sql_dump.ctp to completely
fail, and I am not entirely clear why.

My team hasn't altered any of the core CakePHP 1.3 library files, and
pages where we aren't using MyHelper render the sql_dump.ctp output
just fine. Has anyone experienced this before? I plan on spending a
little time to troubleshoot this more, but am checking with the list
with the hope that it's something simple that I have overlooked.

Brian Jones
brian.jones@istpika.com

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

no flash messages in the login page using cake 1.3

Hi All, I am testing cake 1.3 in a new application I am building and I
have a weird behaviour: No flash messages are shown in the login page.
I am using Auth and ACL, and the session component and helpers are
already in my app_controller.

Seems like a new session is created everytime the user hits the login
action of my users controller. I have some login in the login action
to save the user IP address and log the access. any hints?

Thanks in advance

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Testing controllers - no param is set

Hey,

i try testing controllers as described by mark story (http://mark-
story.com/posts/view/testing-cakephp-controllers-the-hard-way)..

The Problem - i call the method with one param but the view mehtod
recognize it, even it is in $this->params...

In the Test:

$this->Users->params = Router::parse('/admin/users/delete_member/
14');
$this->Users->beforeFilter();
$this->Users->Component->startup($this->Users);
$this->Users->admin_delete_member();

In the Method
function admin_delete_member($id = null) {
pr($id);
pr($this->params);
die();
}

Result:

Array
(
[controller] => users
[action] => delete_member
[named] => Array
(
)

[pass] => Array
(
[0] => 14
)

[prefix] => admin
[admin] => 1
[plugin] =>
[isAjax] =>
)


If I call the method in the application (not via testsuite), it works
and show me the correct param

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Prefix routing problem

no, i use the authsome component from debuggable...

On 28 Mai, 10:18, Bogdan Bursuc <bogdanbursu...@gmail.com> wrote:
> Do you use the Auth component ?
>
>
>
> On Fri, May 28, 2010 at 9:07 AM, cronet <cro...@gmx.de> wrote:
> > hm...
>
> >  i solved my problem with the following route configuration:
>
> > Router::connect('/aktivieren/*', array('controller' => 'users',
> > 'action' => 'activate', 'admin'=>null));
>
> > I don't know why cake behave this way, because in the manual there's a
> > note to user admin=>false, not admin=>null in the html link array...
>
> > On 28 Mai, 07:47, cronet <cro...@gmx.de> wrote:
> > > that does not solve the problem...
>
> > > Router::connect('/aktivieren', array('controller' => 'users', 'action'
> > > => 'activate', 'admin'=>false, 'prefix'=>false ));
> > > Router::connect('/aktivieren/', array('controller' => 'users',
> > > 'action' => 'activate', 'admin'=>false, 'prefix'=>false ));
> > > Router::connect('/aktivieren/*', array('controller' => 'users',
> > > 'action' => 'activate', 'admin'=>false, 'prefix'=>false ));
>
> > > I tried all combinations and accessing
> > > /aktivieren
> > > /aktivieren/
> > > /aktivieren/blabla
>
> > > it ends up in "admin_activate" not "activate"
>
> > > On 28 Mai, 06:24, Bogdan Bursuc <bogdanbursu...@gmail.com> wrote:
>
> > > > You need to define the master route, also:
>
> > > > Router::connect('/aktivieren/', ...); That's the router you access when
> > you
> > > > enter /aktivieren.
>
> > > > On Fri, May 28, 2010 at 2:05 AM, cronet <cro...@gmx.de> wrote:
> > > > > Hey,
>
> > > > > i defined the following route:
>
> > > > >        Router::connect('/aktivieren/*', array('controller' =>
> > 'users',
> > > > > 'action' => 'activate', 'admin'=>false));
>
> > > > > But everytime when I try to access /aktivieren cake routes me to
> > > > > admin_activatie...
>
> > > > > Here ar some vars from pr($this)
>
> > > > >    [action] => admin_activate
> > > > >    [uses] =>
> > > > >    [params] => Array
> > > > >        (
> > > > >            [named] => Array
> > > > >                (
> > > > >                )
>
> > > > >            [pass] => Array
> > > > >                (
> > > > >                )
>
> > > > >            [controller] => users
> > > > >            [action] => admin_activate
> > > > >            [admin] =>
> > > > >            [prefix] => admin
> > > > >            [plugin] =>
> > > > >            [form] => Array
> > > > >                (
> > > > >                )
>
> > > > >            [url] => Array
> > > > >                (
> > > > >                    [url] => aktivieren
> > > > >                )
>
> > > > >        )
>
> > > > > Why I get always to admin, even when i set admin=>false ?
>
> > > > > Regards,
> > > > > AxlF
>
> > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
> > others
> > > > > with their CakePHP related questions.
>
> > > > > You received this message because you are subscribed to the Google
> > Groups
> > > > > "CakePHP" group.
> > > > > To post to this group, send email to cake-php@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>
> > <cake-php%2Bunsubscribe@googlegroups.com<cake-php%252Bunsubscribe@googlegroups.com>>For
> > more options, visit this group at
> > > > >http://groups.google.com/group/cake-php?hl=en
>
> > > > --
> > > > Bogdan Iulian Bursuc
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
> --
> Bogdan Iulian Bursuc

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Select options after validate are not displayed

Yeah, it was problem in something like that. Big 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 to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: helper naming convention

Yeah Cakes naming conventions can be confusing:

Class: TimeLineHelper
File: time_line.php
Include: $helpers = array('TimeLine')

On May 29, 8:03 pm, Steve Love <stevel...@gmail.com> wrote:
> The error message gives you a subtle hint.
> With a file named time_line.php, try defining it in the controller as:
> var $helpers = array('TimeLine');
>
> Steve
>
> On May 29, 8:58 pm, Bryan Lim <ytbr...@gmail.com> wrote:
>
> > Hi all,
>
> > Can someone please tell me what did I do wrong with the naming
> > convention?
>
> > I named my helper time_line.php. It is called class TimeLineHelper
> > extends AppHelper.
>
> > At the controller, var $helpers = array("time_line");
>
> > But it gives me error that TimeLineHelper is not found.
>
> > So I change time_line.php to tl.php. TimeLineHelper to TlHelper.
> > $helpers = array("tl");
>
> > it works.
>
> > I am using cakephp 1.3.
>
> > Thanks!
> > Bryan

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 group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en