As you want to use the function for multiple controllers, so there are two
ways to achieve this,
1. Add this method to App controller : & use it via $this->methodname() in
your controller
2. Create a component which will be used in required places, & which will
be generic for that functionality.
Yes,
Keep ckeditor inside js directory.
You need to put the ckfinder inside the wwwroot directory.
Create an element, ckeditor.ctp
Html->script('/ckfinder/ckfinder', false);
if(!isset($description)){
$description = '';
}
echo $this->Form->textarea($name , array('label' => false , 'id'
1. Check the folder is present at the correct location.
2. Please check the folder permissions are correct.
3. The folder needs 777 permissions for uploading a file.
4. set
function CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are
allowing
// "
Hey,
I have the same issue here. I am working on FB login with CakePHP 2.0
& everything works perfect, but when i get the user details from FB &
login that user to portal, Auth session gets created. But after
logging in user get redirected to dashboard, between this the Auth
session gets destroyed
Yes try the $this->redirect($this->referer());
http://book.cakephp.org/1.2/view/430/referer
Thanks,
Vijay
On Mar 11, 10:01 am, romel javier gomez herrera
wrote:
> try with this $this->redirect($this->referer());
>
> El 10 de marzo de 2012 21:24, Brian Bowler escribió:
>
>
>
>
>
>
>
> > So I
Hello Gildonie,
You have to add the following line in you layout,
element('sql_dump'); ?>
cake 1.3 doesn't directly displays the sql statements as like cake 1.2 if
your debug mode is 2.
On Fri, Jul 30, 2010 at 5:18 PM, Gildonei Mendes A. (Junior) <
anjol...@gmail.com> wrote:
> Hi,
>
> I'm star
It is not working while saving the data while adding the data or while
editing the existing data?
I have the same problem with cakephp 1.3 but while editing the associated
model data using saveAll.
If it is not saving the data while editing then in cakephp 1.3 you have to
specify the related model
Hey Ats,
Please on your debug mode. State it as 2. You can get this in the
app/config/core.php
so that you can view the actual errors.
On Mon, Jun 7, 2010 at 9:48 AM, Ats wrote:
> Hi i am new to cakephp
> i am getting this error when i am running http://localhost/quickwall/
>
> Error: The re
gt;
> > > On Fri, Apr 30, 2010 at 9:23 AM, Vijay wrote:
> > > > Hello All,
> >
> > > > I am using the ajax for the internal links in my site.
> >
> > > > When i click on the link & the new ctp loads, it is not including the
> > >
Please check the path of the image.
If it is applying from js or css, please change the path.
e.g. var image = '../img/image_name';
If this doesn't help then i need to see the code. :)
On Sat, Apr 24, 2010 at 11:11 AM, priya dhakane wrote:
> hello,
> i am new in cakephp. I want tooltip on imag
ing the ajax for the internal links in my site.
>> >
>> > > When i click on the link & the new ctp loads, it is not including the
>> > > javascripts that are included in that ctp.
>> > > So the effects are not working.
>> >
>> > > It inclu
Hello Daniel,
Thanks for the help.
I will check all the links you sent & if any problem i will revert you back.
Thanks .
On Sat, Sep 26, 2009 at 2:02 PM, danfreak wrote:
>
> If you have plugins in your application use the "-f" option to include
> their tables in your schema
Hello Jonathan,
Thanks for the reply.
I have tried the following links,
http://www.imagemagick.org/script/install-source.php#unix
using the instructions in the above link pages i have installed the image
magik.
Also i was searching for the uses from ,
http://www.imagemagick.org/Usage/
But i
Hello All,
Thanks for the help.
On Fri, Sep 18, 2009 at 3:05 PM, Amit Rawat wrote:
> You can make a component and place your common function there. Then you can
> use our function by including your component in controller like:-
>
> $components=array('componet name');
>
> function index{
>
> $t
Hello ajoberstar,
Please add Document_root before webroot/ in the .htaccess in the
application folder, app folder.
It will help you, coz i was facing same problem on my server.
When i added the DOCUMENT_ROOT path in the .htaccess befor /webroot it
worked fine for me.
please do check this.
On Tue
Hello Agota,
Default limit for the pagination is 20 records per page in cakephp.
So if you want to set it to 25 then please refer the following link,
http://book.cakephp.org/view/165/Controller-Setup
On Wed, Sep 2, 2009 at 2:11 PM, Agota wrote:
>
> Hi there, I am experiencing some issues wi
Hello Ricardo,
Please try out with the basic cakephp assignment,
http://book.cakephp.org/view/219/Blog
2009/9/2 Zé Ricardo
>
> Hi, I'm a cakephp beginner and I'm wondering how I can load initial
> data in my database (eg. some users and groups). I thought fixtures
> could do the task, but it
Hello Brain,
Please edit the .htaccess in the root folder & app folder.
Add the app/webroot instead of webroot.
On Wed, Aug 12, 2009 at 9:37 PM, brian wrote:
>
> @Robert, the .htaccess files were already removed and the App.baseUrl
> line uncommented.
>
> @Jonathon, I'm not completely certain w
Yes you are right hols
But the old site have more that 100 urls.
So how can it do it by mod_rewrite?
On Wed, Aug 12, 2009 at 3:02 AM, Hols Kay wrote:
>
> You can use use mod_rewrite to redirect all the old urls to their Cake
> equivalents.
>
> http://www.yourhtmlsource.com/site
Hello Sarah,
Can you please paste the code here so that we can help you right a
way.
On Sun, Aug 9, 2009 at 9:38 PM, brian wrote:
>
> It could be a lot of things. Can you post your code?
>
> On Sat, Aug 8, 2009 at 9:32 PM, Sarah wrote:
> >
> > I'm having trouble getting my javascrip
Hello Sarah,
Can you please paste your code here so that we can help you right a way.
With out telling the pros & cons for that...
On Sun, Aug 9, 2009 at 9:38 PM, brian wrote:
>
> It could be a lot of things. Can you post your code?
>
> On Sat, Aug 8, 2009 at 9:32 PM
You can check this in the controller action from where you are saving the
data.
Before saving data please calculate the size (*filesize() function*) of the
uploaded file & then do the appropriate action.
On Thu, Aug 6, 2009 at 8:04 PM, OmarC wrote:
>
> Hi everyone.
>
> I've got a form, some fie
You can not store array(); in the database.You have to separate the array
elements using implode function & then you can add it to the data base.
Better way please create new table that will take the book_id & the
auther_id so that you can associate the models.
On Thu, Aug 6, 2009 at 2:49 PM, Raw
Rob,
Please dont use _ (underscore) for the action. Use .../users/viewlist/
On Thu, Aug 6, 2009 at 8:18 PM, robh wrote:
>
> Hi,
>
> I'm new to CakePHP and I've run into a problem I can't figure out.
>
> I've created an action called 'viewList()' in UsersController, and a
> view called view_li
Please use print_r($title) so that you can get is there any variable named
title or not if it gives error again please heck the variable assignment on
the $this->set in the controller.
On Thu, Aug 6, 2009 at 9:52 PM, jburns wrote:
>
> Hi - I am new to CakePHP and finding my way around.
>
> I hav
Dreamhost is the best hosting service providers.
http://www.dreamhost.com/
On Wed, Aug 5, 2009 at 6:35 AM, Veoempleo wrote:
>
> Hello,
>
> I'm developing an app with cake. Now I have the app in a web hosting
> of Cirtex company, but the latency is very high.
>
> What is your experience with you
Hello Mridulesh,
This problem is related with .htaccess at your root folder 7 which is in app
folder too.
Please add the document root path of the server before the line where
webroot is written.
It will be like
RewriteEngine on
RewriteRule^$add site_document_path here webroot/
Hello Brian,
You are right,but if you are facing this problem every time then better way
to put this code in the app_controller.php.
On Wed, Jul 29, 2009 at 9:29 PM, brian wrote:
>
> in your controller:
>
> public $helpers = array('Html');
>
> On Wed, Jul 29, 2009 at 2:51 AM, Jogi Silalahi wro
Yes , RWS - Bharat Maheriya is right.
If you are writing queries for joins in the fabulous framework like cakephp
then what is the need to us the framwork.
Cakephp has a good feature of associations so please use that to join the
tables.
You have to write custom queries only few times & it is neg
Hello Farjad,
There is a file uploading component in the cakephp.
Please check the following links,
http://bakery.cakephp.org/articles/view/file-upload-component-w-automagic-model-optional
http://www.reversefolds.com/articles/show/filehandler
On Mon, Jul 27, 2009 at 9:02 PM, brian wrote:
>
se here:
>
> http://pastebin.com/f179e1e49
>
> I've been using it for several years and transfer 15 to 20tb per month
> using that piece of code.
>
>
> /Crazy
>
> On Jul 24, 9:58 am, Vijay Kumbhar wrote:
> > Yeah...
> >
> > Thanks rufus it works ...
Hey aswamr,
can you follow the cake bake commands.It is a awesome feature of cakephp
which creates the controllers , models , view on the fly with the common
functions like index ,add, edit, delete , admin_index ,admin_add , .and
so on.
Only craete your table with the appropriate fields & see
t['Application']['type']."" );
header("Content-Disposition: attachment;
filename=\"".$result['Application']['resume']."\";");
header("Content-Transfer-Encoding: binary");
//header("C
Yeah...
Thanks rufus it works .
only i changed this line,
header('Content-Type: application/octet-stream'); to
header("Content-Type: ".$result['Application']['resume'])."");
that is the content type of the uploaded file coming from my database.
Thanks again...
On Fri, Ju
i have removed that array too. but it is not still giving the file to
download.
On Fri, Jul 24, 2009 at 8:06 AM, brian wrote:
>
> mimeType should be a string, not an array. Why do you assign it as
> array($result['Application']['type'])?
>
> On Thu, Jul 23, 2
Hello Brian,
Thanks for your reply.I have done as you told it gave me the $param values.
But it is not giving me download window :( .
here is code as you told to comment the part,
//Configure::write('debug', 0);
$this->view = 'Media';
/* MediaView is really i
Hey Dhileepen,
In cake the model uses the bydefault table as per its name. As like you are
using post model so it will take the table as posts.
For using another table you have to specify in that model like,
var $useTable = 'tablemame';
Then it will uses the table other than model name.
For mor
Hello Dhileepen,
Please use "style" => "width:100px;" the width will be as you want.
button('Reset', array('type'=>'reset', 'width'=>'20',
'action'=>'clearLogin' , "style" => "width:100px;"));?>
It will reduce the size of the button.
On Mon, Jul 20, 2009 at 10:40 AM, Dhileepen Chakravarthy <
d
Hello Sheetal,
You are right about using the $uses. You have to use that as follows,
var $uses = array('Main model name' , '2nd model name' ...so on);
in the add function you have to write,
$this->modelname->tablefieldname =
$this->data['modelname']['form_field_name']; //here $this->data['m
Hey Sheetal,
You can do it in simple way.
in the input tag use 'div' => false thats it & for see that
works.
input('inputname' , array('label'=>false , 'div' =>
false , your other properties));?>
I am using it in my every application.
On Sat, Jul 11, 2009 at 5:56 PM, brian wrote:
>
> You mi
Please check the home.ctp in the pages controller if you are not modifying
the routes to your own controller.
Becoz cake takes the default content for layout from the
//view/pages/home.ctp.
Other wise please check for extra in other pages or in default.ctp.
On Thu, Jul 9, 2009 at 7:31 AM, V1V3k
Yes brian is right.
If you are sending the project id to the view through
$project_id = $this->params['Project']['id'];
Then you have to send that variable to the view by $this->set method.
Compact is the optimized way to use set.
So please read the Compact method first clearly then use it c
Hello rb,
You are right that is the way to do it.
But my suggestion is that please dont break the basic conventions of
cakephp.
You have to write custom query at very high complex level otherwise there is
no need to use custom query.
So please check the update method in the model.
On Thu, Jul 9,
Hello Boobalan,
I had got the same problem.
Please delete the security salt & leave it blank. It will work.
On Sat, Jul 4, 2009 at 5:08 PM, boobalan wrote:
>
> Hi to all ,
> Friends whether the installation or development is web/
> application server dependent.
> Bcoz, i've came across so
Somehing like that (very simple version):
>
> public function add($userId) {
> $this->data['Journal']['user_id'] = $userId;
>
> $this->Journal->saveEntry($this->data);
> }
>
> The problem is $userId is automaticlly set like that:
> $this->
gt; Photo is the only key pair that has an array - so I guess that's
> significant. If I change $this->set('thumbs',$this->flickr-
> >photosets_getPhotos($currset)); in GalleryController to $this->set
> ('thumbs',$this->flickr->photosets_getPhotos(arr
Hey Hols,
Can you please checked printing that $photo array??
Please check that one. If that array is blank / or please check the
structure of that array then it gives the error.
On Mon, Jun 29, 2009 at 6:22 PM, Hols Kay wrote:
>
> Hi guys,
>
> Quite new to this - I'm doing this tutorial:
> ht
de.. thanks for reply..
>
> On Jun 29, 6:00 pm, Vijay Kumbhar wrote:
> > Hello Bhushan,
> >
> > Cake php uses that default layout file to show the common layout.And it
> > takes the home.ctp in pages folder.
> >
> > Are you using default.ctp for default layout?
&
Hello Ernesto,
You can use the following code,if your css file is in webroot/abc/abc.css
folder,
$html->css('abc/abc.css');
By default cakephp searches for the css in webroot folder. So better way to
store the css , js, images in the webroot folder.
On Mon, Jun 29, 2009 at 5:14 PM, Ernesto w
Hello Raph,
I think you are making a mistake that you are providing a id while adding a
record.
If you provide the id to the save method it fires the update query.
For further explanation Can you please paste the code here?
On Mon, Jun 29, 2009 at 5:44 PM, Raph wrote:
>
> I have weird (I think
Hello Bhushan,
Cake php uses that default layout file to show the common layout.And it
takes the home.ctp in pages folder.
Are you using default.ctp for default layout?
If not please refer that file.
You can get that file in the project
folder=>app=>views=>layouts=>default.ctp
In default.ctp y
Hello Bhushan,
Please follow the following links,
http://bakery.cakephp.org/articles/view/paypal-direct-payment-api-component
I also used this link for the paypal integration in my project & it works
nice.
On Mon, Jun 29, 2009 at 11:12 AM, bhushan A wrote:
>
> Hi All,
> Can anybody tell me a
Hello rajasekaran,
Please check the model names in the $uses.
You have made a mistake in the model name of "Employees" it has to be
"Employee".
If you have any other error please post it here for more help.
On Fri, Jun 26, 2009 at 9:52 PM, harish rajasekaran <
harish.rsn.av...@gmail.com> wrote:
53 matches
Mail list logo