Regarding module creation in cakephp v 3.0

2015-06-07 Thread Naman Kaushik
I am new to cakephp. I want to break the whole module into module chunks . How can I do that. Please help me out. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups

image and a tag problem without mod_rewrite

2010-06-30 Thread kaushik
I have developed my site in a server where mod_rewrite and .httaccess are available. I used '$this-webroot' variable for a tag and img path extensively. But I have to make the live in a server where mod_rewrite and .httaccess are not available and the site will be uploaded in a subfolder (not in

Re: image and a tag problem without mod_rewrite

2010-06-30 Thread kaushik
/reserved.variables.server.php On Jun 30, 2:45 pm, kaushik kaushikwo...@gmail.com wrote: I have developed my site in a server where mod_rewrite and .httaccess are available. I used '$this-webroot' variable for a tag and img path extensively. But I have to make the live in a server where

beforeDelete afterDelete

2009-12-16 Thread kaushik
I have a Behavior where I want to define some afterDelete action for image deletion. For that I need the id of the record either in beforeDelete() or afterDelete() function. Can anyone help me guiding how to get the id in those function. Check out the new CakePHP Questions site http://cakeqs.org

Re: Does CakePHP require a change of document root?

2009-11-29 Thread Abhishek Kaushik
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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -- Regards Abhishek Kaushik Check out

Image Actas Behavior Problem

2009-11-23 Thread kaushik
I am facing some problem to use Image Actas Behavior where I want to add multiple data for a model. I have Business and Bizimage model. From a single form, I have to add an single entry for Business and multiple entry for Bizimage. When there is no image,it is working fine. But when i want to add

Re: Image Actas Behavior Problem

2009-11-23 Thread kaushik
In normal insertion case, it is all done by the behavior, no extra code is needed for that. But in the specific case where one form is used to enter multiple entry in hasmany relation, it is not working. What is solution for it. On Nov 24, 11:19 am, Amit Rawat rawatami...@gmail.com wrote: Its

Behavior problem

2009-11-23 Thread kaushik
I am using saveall function to save a user details and its multiple job details(user and job details is in hasmany-belongsto relatiobship) from a single form. I have written a behavior for job details. But when I am using saveall from user controller, the behavior for job details is not called.

Image Actas with SaveAll

2009-11-19 Thread kaushik
I am facing some problem to Image Actas where I want to add multiple data for a model. I have Business and Bizimage model. I have to add from a single form an single entry for Business and multiple entry for Bizimage. When there is no image,it is working fine. But when i want to add image for

Re: Dependent in Associations is not working.

2009-04-17 Thread kaushik
It is my code for deleting user : if ($this-User-del($id,true)) { $this-flash('The User with id: '.$id.' has been deleted.', '../ users'); } I think that it is enough for deleting cascade entries. But it is not working. What is the problem? On Apr 14, 3:35 pm, Braindead

Dependent in Associations is not working.

2009-04-14 Thread kaushik
It is user model: class User extends AppModel { var $name = 'User'; var $primaryKey = 'userId'; var $displayField = 'userName'; var $hasMany = array( 'Blog' = array( 'className' = 'Blog', 'foreignKey' = 'blogId', 'dependent' = true,

Pagination problem in search functionality

2009-04-10 Thread kaushik
I have a search form for Blog with pagination. The form is like below. form name=BlogSearchForm onSubmit=javascript:return check(); id=BlogSearchForm method=post action=/blogs/search fieldset style=display:none; input type=hidden name=_method value=POST / /fieldset input type=text

IN statement in Findall

2009-04-09 Thread kaushik
How to use not 'IN' in condition in finall()? $data = $this-Blog-findAll(array('Blog.id' = '5'),array ('Blog.blogId','Blog.blogImage','Blog.blogTitle')); I want to change it so that it finds out id IN (7,8,9). How to do that? --~--~-~--~~~---~--~~ You

Re: Like search

2009-03-17 Thread kaushik
I want to add multiple columns in or option, eg. select * from blog where (keyword like '%xyz%' or title like '%xyz%') and is_active = 'Y'; How to arrange it in condition array? On Mar 12, 11:13 am, Miles J mileswjohn...@gmail.com wrote: $this-Model-find('all', array( 'conditions' =

Ajax check

2009-03-17 Thread kaushik
I want to add ajax check of username in sign up form onblur action. How to use ajaxhelper for this functionality? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Ajax Validation

2009-03-17 Thread kaushik
I have this form: form . input type=test name=username/ . /form I want to call a ajax function onblur action of username field which will call a method of UsersController which will check its validity using database. In case of invalid username, it will give an alert massage. how to do

Ajax check of username

2009-03-14 Thread kaushik
I want to add ajax check of username in sign up form onblur action. How to use ajaxhelper for this functionality? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: validation problem

2009-03-14 Thread kaushik
...@gmail.com wrote: Try use the third param in Save action. like this: $this-User-save(   $this-data,  // make sure there is a id in data array    true,    array('email') //just save email ) 2009/3/13 kaushik kaushikwo...@gmail.com I have validate different field using cakephp's in-bulit

find all

2009-03-14 Thread kaushik
How to use not equal to in condition in finall()? $data = $this-Blog-findAll(array('Blog.isActive' = 'Y','Blog.blogImage' = ''),array ('Blog.blogId','Blog.blogImage','Blog.blogTitle')); I want to change it so that it finds out blogImage!=''. How to do that?

Redirect

2009-03-14 Thread kaushik
I want to redirect a page after certain database operation with a massage. Is it possible to redirect using redirect() method of appcontroller? If it is not possible, then which method can work for this feature? --~--~-~--~~~---~--~~ You received this message

validation problem

2009-03-13 Thread kaushik
I have validate different field using cakephp's in-bulit validation system. but now problem is that the system does not persist all the values even if they are valid, e.g in a form, i have to give name, email, state, and the value given in email is not valid, but other values given in the field

Like search

2009-03-12 Thread kaushik
I want to do like search in multiple columns, for a few column it is %test and for others it is %test%. How to do you that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Re: Model without table

2009-03-12 Thread kaushik
As per your direction, i have used this code in model: class contact extends AppModel { var $name = 'Contact'; var $table = false; } and this code in controller: class ContactsController extends AppController { var $name = 'Contacts'; var $components = array('RequestHandler'); var $helpers =

paginate problem

2009-03-12 Thread kaushik
How to set conditions and order by in paginate() method of AppController? --~--~-~--~~~---~--~~ 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

Model without table

2009-03-10 Thread kaushik
I am going to develop a section in a site, where there is no database operation. Only there will a form and a mail will fire on submit of the very form. How to design model for this section? --~--~-~--~~~---~--~~ You received this message because you are subscribed

ActAs Image column behavior problem

2009-03-10 Thread kaushik
I want to upload an image and a flv file using ActAs Image column behavior. But it is giving error like that: copy(/home6/smallbi9/public_html/subdomains/videon/app/webroot/img// Video/7//videoFile.application/octet-stream) [function.copy]: failed to open stream: No such file or directory

Re: Index page problem

2009-03-05 Thread kaushik
In front page i want to show same with http;//www.test.com/contents/ view/1, but the url must be like http;//www.test.com/. How I can do it? On Mar 5, 4:08 pm, Miles J mileswjohn...@gmail.com wrote: What exactly are you trying to do? You need to add links to controllers/actions before you can

link problem

2009-03-05 Thread kaushik
I want to create a link like this: a href=/contents/../ alt=Homenbsp;/a But if I use ?php echo $html-link('nbsp;', ../, array ('alt'='Home'))?, it is giving this html: a href=/contents/../ alt=Homeamp;nbsp;/a If i use ?php echo $html-link(' ', ../, array('alt'='Home'))?, it is giving this

validation notEmpty

2009-03-04 Thread kaushik
I am using following code for validating a not empty field. var $validate = array( 'blogCategoryId' = array( 'required' = array('rule' = 'notEmpty', 'message'='Please select Blog category.'), ) ); It is working properly but giving the following warning:

file validation

2009-03-03 Thread kaushik
I want to set a system where file uploading is must and i also want to check the extension of file. Is it possible to arrange the validation from model or I have to check from controller. Can anyone give any idea? --~--~-~--~~~---~--~~ You received this message

Automatic JavaScript Validation for select box

2009-03-03 Thread kaushik
I am using Automatic JavaScript Validation. For a mandatory select box, i am using the following code: var $validate = array( 'blogCategoryId' = array( 'required' = array('rule' =array ('allowEmpty',false), 'message'='Please select Blog Category.'), ),

Automagic JavaScript Validation

2009-02-25 Thread kaushik
I am using Automagic JavaScript Validation. for password i am using this code: 'password' = array( 'required' = array('rule' = array('minLength', 7), 'message'='Minimum Length of Password is 7'), ) It is working perfectly. but for another field I want to maintain the

AppController methods

2009-02-20 Thread kaushik
Can anyone provide me list of AppController methods with their definations? --~--~-~--~~~---~--~~ 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

Wordpress is CakePHP

2009-02-18 Thread kaushik
I have developed a site in cake. Now the client to integrate Wordpress blog in this site. Is it possible to install Wordpress in any sub directory and operate it from there. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Wordpress is CakePHP

2009-02-18 Thread kaushik
: You could put the wordpress directory inside the webroot folder domain.com/wordpress On Feb 19, 2009, at 12:26 AM, kaushik wrote: I have developed a site in cake. Now the client to integrate Wordpress blog in this site. Is it possible to install Wordpress in any sub directory

Re: Problem in model designing

2008-12-31 Thread kaushik
? -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of kaushik Sent: Friday, December 26, 2008 8:40 AM To: CakePHP Subject: Problem in model designing I am going develop a system where there is two types of members. During registration

Problem in model designing

2008-12-26 Thread kaushik
I am going develop a system where there is two types of members. During registration or edit profile, there will be some common fields as well as some member type specific fields. Some of the common fields are mandatory, some are not. Same is true for member type specific fields. But both type of

actas image column behavior problem

2008-07-22 Thread kaushik
I am using actas-image-column-behavior for image upload, image upload is successful, but giving error in displaying the image, my model: ?php class category extends AppModel { var $name = 'Category'; var $primaryKey = 'categoryId'; var $displayField = 'categoryName'; var $belongsTo =

Upload a File with CakePHP 1.2.0.5137alpha

2008-07-21 Thread kaushik
I just go thu the pages the file uploading behaviour provided. thank u to provide such important links. Behaviour: http://bin.cakephp.org/saved/19658 Example: Model : http://bin.cakephp.org/saved/19659 Controller:http://bin.cakephp.org/saved/19660 View:

ActAs Image column behavior in cake1.2

2008-07-19 Thread kaushik
I want to implement the ActAs Image column behavior(described http://bakery.cakephp.org/articles/view/actas-image-column-behavior), but facing problem to implement it. it is giving error the some functions are already deprecated. Can anyone help me to implement that. I want to know what is rule

Soap in Cake

2008-07-16 Thread kaushik
I am new in Cakephp. I want to use soap in cake. I already implemented the same in general php coding in this way- include(SOAP/Client.php); $WSDL = new SOAP_WSDL('http://test.net/webservice.asmx?WSDL'); $soapclient = $WSDL-getProxy(); $soapclient-setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0);

File uploading in cake

2008-07-16 Thread kaushik
I am new in CakePHP. I want to store the products and product details with image (image will be store in folder, not in table). Here is my code details: categories Table: `categoryId` int(10) NOT NULL auto_increment, `categoryName` varchar(100) NOT NULL, `isActive` enum('Y','N') NOT NULL

how to use self join in cake

2008-07-15 Thread kaushik
I am new in CakePHP. I am facing problem to use parent_id of category table. Here is my code details: categories Table: `categoryId` int(10) NOT NULL auto_increment, `categoryName` varchar(100) NOT NULL, `parentId` int(10) NOT NULL default 0, `isActive` enum('Y','N') NOT NULL default 'Y',

File upload

2008-07-12 Thread kaushik
I am new in CakePHP. I want to store the products and product details with image (image will be store in folder, not in table). Here is my code details: categories Table: `categoryId` int(10) NOT NULL auto_increment, `categoryName` varchar(100) NOT NULL, `isActive` enum('Y','N') NOT NULL

Self join in cake

2008-07-12 Thread kaushik
I am new in CakePHP. I am facing problem to use parent_id of category table. Here is my code details: categories Table: `categoryId` int(10) NOT NULL auto_increment, `categoryName` varchar(100) NOT NULL, `parentId` int(10) NOT NULL default 0, `isActive` enum('Y','N') NOT NULL default 'Y',

Dynamic drop down

2008-07-09 Thread kaushik
Thank you for this help.As per your advice i have changed my controller to - $categories = $this-Product-Category-find('list', array( 'conditions' = array('isActive' = 'Y'))); $this-set(compact('categories')); And view - ?php echo $form-select('Product.categoryId', array('options' =

Re: Dynamic drop down

2008-07-09 Thread kaushik
a displayField set or a field called name? On Wed, Jul 9, 2008 at 2:02 AM, kaushik [EMAIL PROTECTED] wrote: Thank you for this help.As per your advice i have changed my controller to - $categories = $this-Product-Category-find('list', array( 'conditions' = array('isActive' = 'Y'))); $this-set

Dynamic drop down

2008-07-08 Thread kaushik
It is my product Model class product extends AppModel { var $name = 'Product'; var $primaryKey = 'productId'; var $validate = array( 'productName' = VALID_NOT_EMPTY, ); var $belongsTo = array( 'Category' = array( 'className' = 'category',

FCKeditor

2008-07-08 Thread kaushik
I want to integrate fckeditor in one of cakephp page. How do it? where I have to place the editor folder and how to integrate it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group,

Validation

2008-07-02 Thread kaushik
I want to give validation to prevent duplicate entry in category table. Now my model is like that:- class category extends AppModel { var $name = 'Category'; var $primaryKey = 'categoryId'; var $validate = array( 'categoryName' = VALID_NOT_EMPTY, ); } the controller for addition

Dynamic drop down

2008-07-02 Thread kaushik
It is my product Model class product extends AppModel { var $name = 'Product'; var $primaryKey = 'productId'; var $validate = array( 'productName' = VALID_NOT_EMPTY, ); var $belongsTo = array( 'Category' = array( 'className' = 'category',

prob related in input type

2008-06-26 Thread kaushik
I am new Cakephp and facing prob. customizing the default input function. when I am using the below code: ?php echo $form-input('title', array('size' = '40'))? the output is below: div class=input text requiredlabel for=NoteTitleTitle/ labelinput name=data[Note][title] type=text size=40

product and category table join problem

2008-06-25 Thread kaushik
I am in new cakephp. I am facing prob to developing a new module. I have two tables; Product table Field TypeNullKey Default Extra product_id int(5) unsigned NO PRI auto_increment product_namevarchar(45)

using a multiple table for in a single component

2008-06-25 Thread kaushik
I have a product table and a category table. primary key of category table i.e. category_id is foreign key. so in product module i want to show the category_name using this relation. how it is possible in cakephp? is there any tutorial? anyone can help me?

prob in template

2008-06-23 Thread kaushik
I want to use different template structure for frontend and admin section. how i have to code in default.cpt... i have to use two different files or it have to arrange in same file? --~--~-~--~~~---~--~~ You received this message because you are subscribed

prob in image path

2008-06-22 Thread kaushik
i am new in cakephp. now i am facing great prob regarding images. i have a image in webroot/imgs and want to access it from both from frontend and admin. how it is possible if i used hard coded img tag in cpt file? --~--~-~--~~~---~--~~ You received this message