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 : Elements/
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 = 'Projec
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 = isset($this->request->data['Model']
On Apr 15, 9:22 pm, Matt Murphy 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 Questions site http://
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 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 an empty "add"
>
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 ...
You could use Cake's translation.
locale/eng/LC_MESSAGES/default.po:
msgid "password_control"
msgstr "Confirm Password"
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
choice (depending on your other field na
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';
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 wrote:
> hi,
>
> i remove Router::parseExtensions('json');
>
> My wish is to do something like this:
>
> class SomeController extends AppController {
>
> public $
On Sat, Apr 14, 2012 at 2:19 PM, creat1v1ty 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: CakePHP Video Tutorials
ht
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
shou
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 oth
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(
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 t
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
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
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 http
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 c
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
cake-php+unsubs
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
cake-php+unsubscr
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 a
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 http:/
22 matches
Mail list logo