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
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
/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
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
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
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
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
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.
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
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
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,
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
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
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' =
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
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
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
...@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
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?
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
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
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
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 =
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
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
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
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
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
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:
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
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.'),
),
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
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
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
:
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
?
-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
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
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 =
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:
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
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);
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
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',
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
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',
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' =
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
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',
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,
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
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',
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
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)
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?
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
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
56 matches
Mail list logo