send some result to elemetns

2012-04-15 Thread hoss7
hi i have news controller,in this contoller i have some function for show random news. i want send this array result to some element. what i am must to do? thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

[no subject]

2012-04-15 Thread Reza Talamkhani
Hi. I need to fetch all gallery rows in every page in application. How to fetch? Note: Gallery Model is defined but i do'nt understand how to do? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: send some result to elemetns

2012-04-15 Thread hoss7
Note: i have cake php 2.1 -- 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

Re:

2012-04-15 Thread Reza Talamkhani
Note: I have use CakePHP 2.1 -- 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

Re: CakePHP 2.1.1 Auth/ACL PHPUnit

2012-04-15 Thread rossjha
Hi thanks for getting back to me, yes I stripped back my login action and I have setFlash, working and I have the session comp in my app_controller. If I try the auth comp I get the same error. If I var_dump I can see the mock obj are there but with empty values. -- Our newest site for the

Identifying field in Authentication

2012-04-15 Thread hoss7
hi Username and Password is default filed for identifying users in cakephp ,how can i check this field “User.valid = 1 ” with default filed for identifying user? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

using SSL login leads to 404 Error

2012-04-15 Thread luftlinie
hi everyone, i want to secure the login with SSL and use the Security Component for that. cake seems to swith to HTTPS but has trouble calling the new URL https://server/users/login giving me a 404 error. I understand this is fixable with $this- Security-blackHoleCallback but how? what am i

Re: Identifying field in Authentication

2012-04-15 Thread Rodrigo Rodrigues Moyle
USe the scope option in FormAuthenticate http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#configuring-authentication-handlers Em domingo, 15 de abril de 2012 06h00min44s UTC-3, hoss7 escreveu: hi Username and Password is default filed for identifying users in

404 and other error pages

2012-04-15 Thread heohni
Hi, I googled quite some time arround but I only find here and there some hint, but I found never a kind of complete instruction how to setup custom error layouts for my project. I am using Cake 2.1. Does anyone know a good tutorial link? I aslo read in the book, but I find it also quite hard

Re: Identifying field in Authentication

2012-04-15 Thread hoss7
thank you rodrigo,but i have error. this is my code: before: public $components = array( 'Acl', 'Auth' = array( 'authorize' = array( 'Actions' = array('actionPath' = 'controllers') ) ) ) after change: public $components = array(

using other css themes

2012-04-15 Thread sixthpoint
I am using subdomains, each subdomain loads a specific theme folder. I also have a global theme which has global.css in it. I want to be able to load that theme from my current subdomain location. The issue is that when I use the html-css helper it loads the current themes css. How can I load

admin/users to /profile route

2012-04-15 Thread shrijan piya
I am newbie to cakephp. Currently working on localhost and have url as below http://localhost/test/admin/Users but wants it to be http://localhost/test/Users Note Condition: when not login http://localhost/test/Users should work with index.ctp when login http://localhost/test/Users

Re: Redirect www to non-www

2012-04-15 Thread lowpass
On Sat, Apr 14, 2012 at 2:19 PM, creat1v1ty justin.r.ran...@gmail.com wrote: cool, thanks euromark. Will you please confirm which .htaccess file this should go in, based on my doc root being public_html... In #1 -- the one directly inside public_html. -- Our newest site for the community:

Re: JSON response!

2012-04-15 Thread lowpass
Sending both concurrently makes no sense. What is it you're trying to do? On Sat, Apr 14, 2012 at 10:38 AM, Serkan Sipahi serkan.sip...@yahoo.de wrote: hi, i remove Router::parseExtensions('json'); My wish is to do something like this: ?php     class SomeController extends AppController {

Re: send some result to elemetns

2012-04-15 Thread lowpass
Disable autoLayout and set the controller's view to the element. If this is an AJAX request and you're using RequestHandler, it will deal with the first. Then just render. $this-set('data', $some_data); if ($this-RequestHandler-isAjax()) { $this-viewPath = 'Elements'.DS.'FooBars';

Re: Model Validation field names

2012-04-15 Thread lowpass
You could use Cake's translation. locale/eng/LC_MESSAGES/default.po: msgid password_control msgstr Confirm Password li?php echo __($field) .' - '. $error; ?/li But I notice you're already using the __() function elsewhere. If you've already got a multilingual app then this may not be the best

How to redirect two pages back?

2012-04-15 Thread Daniel
I am using the following code to go back a page, but the problem is that the action is an add one so it just goes back to an empty add form: if ($this-request-is('post')) { // blah blah ... if ($this-Inemail-save($this-request-data)) { // blah blah ...

Re: How to redirect two pages back?

2012-04-15 Thread Matt Murphy
You need to capture your post array for the form and feed it back into the new loaded form. Cheers, Matt On Sun, Apr 15, 2012 at 4:15 PM, Daniel danwgr...@gmail.com wrote: I am using the following code to go back a page, but the problem is that the action is an add one so it just goes back to

Re: How to redirect two pages back?

2012-04-15 Thread Daniel
On Apr 15, 9:22 pm, Matt Murphy mattyh...@gmail.com wrote: You need to capture your post array for the form and feed it back into the new loaded form. OK, but how do I do that? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: How to redirect two pages back?

2012-04-15 Thread lowpass
On first display of the form pass the referer to the view to add it to the form. echo $this-Form-input('Model.referer', array('value' = $referer)); public function add() { if ($this-request-is('post')) { $referer =

CakePHP (2.1) Media Plugin - Multi File Upload

2012-04-15 Thread double07
Hi All, I'm using the cakephp media plugin in my project using the monolithic style attachments table, i.e. all the attachments go in the one table with foreign_key, model, group etc. saved with the file details. So my model looks like: class ProjectProfile extends AppModel { var $name =

Re: send some result to elemetns

2012-04-15 Thread hoss7
thank you cricket but i cant undrestand where i must put this code,this is my code: i have one function in newscontroller like this: function randomnews(){ $rnews=$this-News-find('first',array('order'='Rand()'); $this-set('news',$rnews); } i want send this result to some element :