Layout

2012-03-26 Thread alexkd
Hai, I am beginner in cakePHP. I am creating a hospital project. In this in addition to head(Menu) and contents I want a left side list of Patients (a grid view). This patients view is needed in my all pages . How can i design the layout. Thanks. -- Our newest site for the community: CakePHP Vide

RssHelper in 2.1.1

2012-03-26 Thread Sergei
RssHelper was buggy in 2.1 and whats more fun it's completely broken in 2.1.1 and doesn't produce any output at all (I mean empty!). Just saying. Fix please, Sergei. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site h

Re: PHPUnit installation problem

2012-03-26 Thread resting
Ah..that's weird, it works in the global vendors dir. The File Iterator is installed if I specify the global vendors dir. So its a include_path problem? On Tuesday, 27 March 2012 11:16:15 UTC+8, euromark wrote: > > where exactly is your `File/Iterator/Autoload.php`? > try to put all the "installed

Re: PHPUnit installation problem

2012-03-26 Thread euromark
where exactly is your `File/Iterator/Autoload.php`? try to put all the "installed" folders into the global vendors dir: /root/vendors/PHPUnit/... /root/vendors/File/... ... /root/app/ this worked for me since the global vendors path is part of the include path by default Am Dienstag, 27. März

Re: Save should not be saving but...

2012-03-26 Thread rockbust
I still cant figure it out??? -- 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 with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsu

Hot Girls are Looking For Sex

2012-03-26 Thread sajjad200...@yahoo.com
Hot Girls are Looking For Sex http://tour21s.blogspot.com/2012/01/best-hotels-near-disneyland.html / Hot Girls are Looking For Sex http://tour21s.blogspot.com/2012/01/best-hotels-near-disneyland.html / Hot Girls are Looking For Sex http://tour21s.blogspot.com/2012/01/best-hotels-near-disneyland.htm

Would PHP 5.3 stop cake cron job working?

2012-03-26 Thread sarahlou
I have a site (originally built back in 2009) with a couple of cron jobs for order notification emails. The site is running CakePHP version 1.2.4.8284 After the hosting server was upgraded to PHP 5.3, the cron jobs appear to have stopped working (they still run, but no email is sent). The website

Re: Function isOwnedBy

2012-03-26 Thread Benjamin Allison
I was confused too... I just followed the tutorial verbatim, but any logged in user could edit or delete another's posts... -- 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 with

Re: milesj ​cake-auto_login I can't get it working

2012-03-26 Thread Miles J
This doesn't work with AJAX as it uses the beforeRedirect() method callback to process logic. You can save the cookie yourself though: $this->AutoLogin->save($username, $password); -Miles On Monday, March 26, 2012 5:01:41 AM UTC-7, heohni wrote: > > Hi, > > I downloaded the version 3.4. > I ad

Re: paginator with user defined page sizes...

2012-03-26 Thread 100rk
Form using GET method, dropdown named 'limit' or 'show' with onchange = '* this.form*.submit();' - see pagination settings 'paramType' and 'maxLimit'. http://book.cakephp.org/2.0/en/core-libraries/components/pagination.html#pagination-with-get-parameters -- Our newest site for the community: Cak

paginator with user defined page sizes...

2012-03-26 Thread Thomas
Hi, I would like to include a dropdown into an overview page that allows the user to select the paginator page size himself, e.g. 10, 25, 50, 100 items/page But since there is no "form" or "submit" on the overview page, I don't know how I can get the value of the select input control. Is ther

Re: PHPUnit installation problem

2012-03-26 Thread euromark
Alternatively, you can try to install it via cake shell: https://github.com/dereuromark/PHPUnit-Cake2 from your app dir ...app>cake Phpunit.Phpunit install Am Montag, 26. März 2012 09:42:06 UTC+2 schrieb resting: > > from: > http://book.cakephp.org/2.0/​en/development/testing.html

Re: 回复: Re: Where is this CSS?

2012-03-26 Thread Yves S. Garret
Yes, you can. As for the CSS file, just search for a *.css file in the cake directory. On Mon, Mar 26, 2012 at 4:21 AM, JunLe Li wrote: > can i copy the orignal one, then just make some modifications? where is > the orignal css file? > > 在 2012-3-26 上午5:59,"thatsgreat2345" 编写: > > > If you want

回复: Re: Where is this CSS?

2012-03-26 Thread JunLe Li
can i copy the orignal one, then just make some modifications? where is the orignal css file? 在 2012-3-26 上午5:59,"thatsgreat2345" 编写: If you want to use your own layout you must add a file called default.ctp into layouts folder (inside your apps View folder). This will override cakes default layo

回复: Still struggling with login/logout in my test app

2012-03-26 Thread JunLe Li
debug what's in $_SESSION array? Is $_SESSION['Auth'] still there? 在 2012-3-26 下午3:12,"Thomas" 编写: Hi, I'm using the usermin plugin to manage users and access rights. In the first step, everything works fine, as long as the user is not logged in he can't access any pages. No I made a "logout"

Re: How can I render a template to grap the html from witihn a helper?

2012-03-26 Thread heohni
debug($this->Meta->getMetas('xdefault')); => I call this for testing reason in my default.ctp and I get this error: *Notice* (8): Undefined property: View::$Meta [*CORE\Cake\View\View.php*, line *804*] *Fatal error*: Call to a member function getMetas() on a non-object in * D:\SVN-Homes\PHP\tr

Re: Troubleshooting the CakeDC TinyMCE helper plugin.

2012-03-26 Thread vaughany
I'm having further issues with this plugin, now on CakePHP 2.1.1. In much the same setup as above, I have a fresh git clone of the master branch of CakePHP (same issue on 2.0 too), all configured correctly in terms of core.php and database.php, a minimal database has been created and models, co

milesj ​cake-auto_login I can't get it working

2012-03-26 Thread heohni
Hi, I downloaded the version 3.4. I added the checkbox echo $this->Form->input('auto_login', array('label' => __('Stay'), 'value' => 1, 'type' => 'checkbox', 'div' => 'checkbox')); I added the component to my appController. But I use a ajax validation for my login popup and it looks like thi

How can I render a template to grap the html from witihn a helper?

2012-03-26 Thread heohni
Hi, I would like to render a view to grap (for seo) the content to generate keywords. App::uses('AppHelper', 'View/Helper'); class MetaHelper extends AppHelper { function getMetas($template){ $content = $this->render($template); returns my this error: Method MetaHelper::render does

Problem with loading xml data

2012-03-26 Thread heohni
Hi, within a helper class I would like to call this xml App::uses('Xml', 'Utility'); App::uses('AppHelper', 'View/Helper'); class SuggestHelper extends AppHelper { function suggest($keyword){ $keyword = urlencode(trim($keyword)); $xml = Xml::build($this->feed_url.$keyword); $parsed_xml

Still struggling with login/logout in my test app

2012-03-26 Thread Thomas
Hi, I'm using the usermin plugin to manage users and access rights. In the first step, everything works fine, as long as the user is not logged in he can't access any pages. No I made a "logout" menu entry which points to -> http://localhost/cakephp/logout and calls the following function in t