litespeed and cakephp

2012-08-12 Thread hoss7
hi
i have one website with Cakephp 2.1.2 on Litespeed web server.
i have this error:

Warning: include(Cake/bootstrap.php) [function.include]: failed to open 
stream: No such file or directory in 
/home/mybracel/public_html/app/webroot/index.php on line 77

Warning: include(Cake/bootstrap.php) [function.include]: failed to open 
stream: No such file or directory in 
/home/mybracel/public_html/app/webroot/index.php on line 77

Warning: include() [function.include]: Failed opening 'Cake/bootstrap.php' 
for inclusion 
(include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php:/usr/lib/php:/usr/local/lib/php:/home/mybracel/php')
 
in /home/mybracel/public_html/app/webroot/index.php on line 77

Fatal error: CakePHP core could not be found. Check the value of 
CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the 
directory containing your /cake core directory and your /vendors root 
directory. in /home/mybracel/public_html/app/webroot/index.php on line 86

*how can i fix this error?*

note: in Apache web server i dont have this error.

-- 
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 from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




some Vendor problem

2012-06-20 Thread hoss7
hi
i have some vendor files
1.app/vendors/p/p.php   //class file
2.app/vendors/p/pc.php  //config for class
3.app/vendors/p/pk.php  key for class

i have insert "p" in my controller:
App::import('Vendor','p/p');

and i am create some object from this class

$cart= new pcct($somedata);

now my problem:

in class pcct i have some function like this:

function s($value){

include 'pc.php';

1: $k=file_get_contents($k_file_name);

}

when i am call controller i see this error:
line 1: faild to open stream: no such file or directory.

Note: in pc.php i have some value for file name for pass to this function 
and all file are in same place.

in pc.php i have : $k_file_name='pk.php';

how can i config $k_file_name path for this function to access that file

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Missing View

2012-06-15 Thread hoss7
hi
i have some view for example user/login.
i dont have error for Missing View in my pc but when i am upload this file 
in my host i have Missing View error.

some view work fine bu some view dont

this is my error:


Error: The view for UsersController::register() was not found.

Error: Confirm you have created the file: 
/home/mybracel/public_html/app/View/Users/register.ctp

Notice: If you want to customize this error message, create 
app/View/Errors/missing_view.ctp

Stack Trace

CORE/Cake/View/View.php line 460 → View->_getViewFileName(null)
CORE/Cake/Controller/Controller.php line 959 → View->render(null, null)
CORE/Cake/Routing/Dispatcher.php line 110 → Controller->render()
CORE/Cake/Routing/Dispatcher.php line 85 → 
Dispatcher->_invoke(UsersController, CakeRequest, CakeResponse)
APP/webroot/index.php line 96 → Dispatcher->dispatch(CakeRequest, CakeRespon


where is my problem

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Cakephp and Asterisk

2012-06-06 Thread hoss7
*hi i am new in  Asterisk ,i need some tutorial or some sample code or some 
source for learn how can i join Cakephp and  **Asterisk.*
*thanks.*

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: get some value from params

2012-06-04 Thread hoss7

>
> yes, but when i am echo $this->params['query']['_value'];
>
 

> i dont get result
>

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


get some value from params

2012-06-04 Thread hoss7
i have cakephp 2.1.2 and when i am run: pr($this->params);
i have this:

akeRequest Object
(
[params] => Array
(
[plugin] => 
[controller] => subjectcats
[action] => shahrlist
[named] => Array
(
)

[pass] => Array
(
)

[isAjax] => 
)

[data] => Array
(
)

[query] => Array
(
[_id] => DocumentSubjectId
[_name] => data[Document][subject_id]
[_value] => 2
)


how can i get "2" ? from this result

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: pass some key in Pagination links

2012-05-09 Thread hoss7
no my action is "search"

On Wednesday, May 9, 2012 12:27:39 PM UTC+3:30, hoss7 wrote:
>
>
> i want pass some value in Pagination links
>
> like this:
>
> http://localhost/142tel/tels/search/page:2/name/miki
> or
> http://localhost/142tel/tels/search/name/miki/page:2
>
> how can i edit *Defualt*  Pagination links

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: pass some key in Pagination links

2012-05-09 Thread hoss7
thanks, but i want send this values to some actions.

On Wednesday, May 9, 2012 12:27:39 PM UTC+3:30, hoss7 wrote:
>
>
> i want pass some value in Pagination links
>
> like this:
>
> http://localhost/142tel/tels/search/page:2/name/miki
> or
> http://localhost/142tel/tels/search/name/miki/page:2
>
> how can i edit *Defualt*  Pagination links

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


pass some key in Pagination links

2012-05-09 Thread hoss7

i want pass some value in Pagination links

like this:

http://localhost/142tel/tels/search/page:2/name/miki
or
http://localhost/142tel/tels/search/name/miki/page:2

how can i edit *Defualt*  Pagination links

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Form->month error

2012-05-08 Thread hoss7
yes,thank you

On Tuesday, May 8, 2012 9:16:41 PM UTC+4:30, hoss7 wrote:
>
> hi
>
>
> http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::month
>
> i have run this line
>
> echo $this->Form->month('mob', null, array('monthNames' => false));
>
> and i see this error:*Fatal error*: Unsupported operand types in *
> lib\Cake\View\Helper\FormHelper.php* on line *1990* 
> note: i have cakephp 2.1.2
>

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Form->month error

2012-05-08 Thread hoss7
hi

http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::month

i have run this line

echo $this->Form->month('mob', null, array('monthNames' => false));

and i see this error:*Fatal error*: Unsupported operand types in *
lib\Cake\View\Helper\FormHelper.php* on line *1990* 
note: i have cakephp 2.1.2

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cookie and array

2012-05-01 Thread hoss7
thanks, how can i add some value in this array in cookie?

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cookie and array

2012-05-01 Thread hoss7
i want create some cookie for add some array in it and i want add some 
value in this array and update cookie

in cookie i want have this:
array()
then
array([0]=>1)
then
array([0]=>1,[1]=>2)
then
array([0]=>1,[1]=>2...)

this is my problem
if (in_array(1,cookie array){
echo 'yes';
}

i want have some array in cookie and check some value,this value is 
product.id and array values is all product.id have user view it,i want chek 
user only see  this product one time

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakePHP 2.1, ckeditor + ckfinder

2012-04-30 Thread hoss7
this is my sample code for wotk with ckeditor

1.copy ckeditor in "webroot/js"

2. in view :

Html->script('ckeditor/ckeditor'); ?>


Form->textarea('info',array('class'=>'ckeditor','id'=>'editor_office2003'));
?>


-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


cookie and array

2012-04-30 Thread hoss7
hi
 i want send array to some cookie and then i want push some values to this 
array in cookie.
for example:
in cookie i have this:
array()
then
array([0]=>1)
then
array([0]=>1,[1]=>2)
then
array([0]=>1,[1]=>2...)

this is my code:

$arr=$this->Cookie->read('braceletid');
array_push($arr,$id);
$this->Cookie->write('braceletid', $arr);

pr($this->Cookie->read('braceletid'));

i want use this array like this.

example:

if (in_array(1,cookie array){
echo 'yes';
}

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: send some result to elemetns

2012-04-16 Thread hoss7
i am agree with you euromark, my problem solved.

cricket i want to send some array to some element to only show. in all pages

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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 : Elements/sidebar2.ctp

to show some random news in this element,i dont need user request this 
action,i need show automatic result when page loading 

i hope you can show me how can i edit this code to show result in elements

thanks

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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(
'Acl',
'Auth' => array(
'authorize' => array(
'Actions' => array('actionPath' => 'controllers'),
'authenticate' => array(
'Form' => array(
'scope' => array('User.valid' => 1)
)
)
)
)

this is my error:

Authorization adapter "authenticate" was not found.

note:
befor i edit my code i can login and logout and  now with this code i can 
only login and when i want logout i see this error.
*i want only valid user(User.valid=1) can login*


-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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 http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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 http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: jquery autoComplete in cakephp 1.3

2011-10-11 Thread hoss7
please :)

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


jquery autoComplete in cakephp 1.3

2011-10-11 Thread hoss7
tell me best way for create autoComplete with jquery in cakephp 1.3

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


jquery mobile with cakephp

2011-06-02 Thread hoss7
hi
i need create mobile website with cakephp and jquerymobile,i need some
idea for start and config cakephp with jquery mobile

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: error for send email

2011-05-14 Thread hoss7
thank you

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: error for send email

2011-05-13 Thread hoss7
this error for cakephp or i must edit cakephp confing  for use email
functions?

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


error for send email

2011-05-13 Thread hoss7
i want send email,but i have this error:

Warning (2): getmypid() has been disabled for security reasons [CORE/
cake/libs/string.php, line 89]


where is my problem

my controller:

if (!empty($this->data)) {
$this->Email->from= 'example ';
$this->Email->to  = 'example ';
$this->Email->subject = '>'. 
$this->data['Pages']['name'].'_'.$this-
>data['Pages']['email'];
$this->Email->send($this->data['Pages']['message']);
$this->Session->setFlash(__('Your message send!', true));

}

my view:

 Form->create('Pages'); ?>
Name:Form->input('name', array('label'
=> '')); ?>
Email:Form->input('email', array('label'
=> '')); ?>
Message:Form->textarea('message'); ?>
Form->end('Send'); ?>
Session->flash(); ?>

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: how can i find out cakephp cache work fine?

2011-04-11 Thread hoss7
thanks

On Apr 11, 9:05 pm, Miles J  wrote:
> If those cache files exist, then yes cache is working.
>
> On Apr 11, 12:58 am, hoss7  wrote:
>
>
>
>
>
>
>
> > thanks
> > i am see this folder(tmp\cache\persistent) i have many files
> > for example in cake_code.dir_map
> > i have this:
> > 1302508471
> > a:8:{s:44:"D:xampphtdocsHOOSBITv3cakephpcake\\\
> > \libs";a:25:{i:0;s:44:"D:xampphtdocsHOOSBITv3\\\
> > \cakephpcakelibs";i:1;s:50:"D:xampphtdocsHOOSBIT\\\
> > \v3cakephpcakelibscache";i:2;s:55:"D:xampp\\\
> > \htdocsHOOSBITv3cakephpcakelibscontroller";i:
> > 3;s:66:"D:xampphtdocsHOOSBITv3cakephpcake\\\
> > \libscontrollercomponents";i:4;s:48:"D:xampphtdocs\\\
> > \HOOSBITv3cakephpcakelibslog";i:5;s:50:"D:xampp
> > htdocsHOOSBITv3cakephpcakelibsmodel";i:6;s:
> > 60:"D:xampphtdocsHOOSBITv3cakephpcakelibs\\
> > \\modelbehaviors";i:7;s:62:"D:xampphtdocsHOOSBITv3\
> > \\\cakephpcakelibsmodeldatasources";i:8;s:66:"D:\\\
> > \xampphtdocsHOOSBITv3cakephpcakelibsmodel\\
> > \\datasourcesdbo";i:9;s:49:"D:xampphtdocsHOOSBITv3\
> > \\\cakephpcakelibsview";i:10;s:58:"D:xampphtdocs\\\
> > \HOOSBITv3cakephpcakelibsviewelements";i:11;s:
> > 64:"D:xampphtdocsHOOSBITv3cakephpcakelibs\\
> > \\viewelementsemail";i:12;s:69:"D:xampphtdocs\\\
> > \HOOSBITv3cakephpcakelibsviewelementsemail\
> > \\\html";i:13;s:69:"D:xampphtdocsHOOSBITv3cakephp\\
> > \\cakelibsviewelementsemailtext";i:14;s:56:"D:\\\
> > \xampphtdocsHOOSBITv3cakephpcakelibsview\\\
> > \errors";i:15;s:57:"D:xampphtdocsHOOSBITv3cakephp\\
> > \\cakelibsviewhelpers";i:16;s:57:"D:xampphtdocs\\\
> > \HOOSBITv3cakephpcakelibsviewlayouts";i:17;s:
> > 63:"D:xampphtdocsHOOSBITv3cakephpcakelibs\\
> > \\viewlayoutsemail";i:18;s:68:"D:xampphtdocsHOOSBIT
> > v3cakephpcakelibsviewlayoutsemail\\\
> > \html";i:19;s:68:"D:xampphtdocsHOOSBITv3cakephp\\\
> > \cakelibsviewlayoutsemailtext";i:20;s:60:"D:\\\
> > \xampphtdocsHOOSBITv3cakephpcakelibsview\\\
> > \layoutsjs";i:21;s:61:"D:xampphtdocsHOOSBITv3\\\
> > \cakephpcakelibsviewlayoutsrss";i:22;s:61:"D:\\\
> > \xampphtdocsHOOSBITv3cakephpcakelibsview\\\
> > \layoutsxml";i:23;s:55:"D:xampphtdocsHOOSBITv3\\\
> > \cakephpcakelibsviewpages";i:24;s:59:"D:xampp\\\
> > \htdocsHOOSBITv3cakephpcakelibsview\\\
> > \scaffolds";}s:50:"D:xampphtdocsHOOSBITv3cakephp\\\
> > \appcontrollers";a:2:{i:0;s:50:"D:xampphtdocsHOOSBIT\\\
> > \v3cakephpappcontrollers";i:1;s:61:"D:xampphtdocs\\
> > \\HOOSBITv3cakephpappcontrollerscomponents";}s:
> > 44:"D:xampphtdocsHOOSBITv3cakephpapp\\\
> > \views";a:16:{i:0;s:44:"D:xampphtdocsHOOSBITv3\\\
> > \cakephpappviews";i:1;s:53:"D:xampphtdocsHOOSBIT\\\
> > \v3cakephpappviewselements";i:2;s:59:"D:xampp\\\
> > \htdocsHOOSBITv3cakephpappviewselements\\\
> > \email";i:3;s:64:"D:xampphtdocsHOOSBITv3cakephp\\\
> > \appviewselementsemailhtml";i:4;s:64:"D:xampp\\\
> > \htdocsHOOSBITv3cakephpappviewselements\\\
> > \emailtext";i:5;s:51:"D:xampphtdocsHOOSBITv3\\\
> > \cakephpappviewserrors";i:6;s:52:"D:xampphtdocs\\\
> > \HOOSBITv3cakephpappviewshelpers";i:7;s:52:"D:\\\
> > \xampphtdocsHOOSBITv3cakephpappviews\\\
> > \layouts";i:8;s:58:&q

Re: how can i find out cakephp cache work fine?

2011-04-11 Thread hoss7
thanks
i am see this folder(tmp\cache\persistent) i have many files
for example in cake_code.dir_map
i have this:
1302508471
a:8:{s:44:"D:xampphtdocsHOOSBITv3cakephpcake\\\
\libs";a:25:{i:0;s:44:"D:xampphtdocsHOOSBITv3\\\
\cakephpcakelibs";i:1;s:50:"D:xampphtdocsHOOSBIT\\\
\v3cakephpcakelibscache";i:2;s:55:"D:xampp\\\
\htdocsHOOSBITv3cakephpcakelibscontroller";i:
3;s:66:"D:xampphtdocsHOOSBITv3cakephpcake\\\
\libscontrollercomponents";i:4;s:48:"D:xampphtdocs\\\
\HOOSBITv3cakephpcakelibslog";i:5;s:50:"D:xampp
htdocsHOOSBITv3cakephpcakelibsmodel";i:6;s:
60:"D:xampphtdocsHOOSBITv3cakephpcakelibs\\
\\modelbehaviors";i:7;s:62:"D:xampphtdocsHOOSBITv3\
\\\cakephpcakelibsmodeldatasources";i:8;s:66:"D:\\\
\xampphtdocsHOOSBITv3cakephpcakelibsmodel\\
\\datasourcesdbo";i:9;s:49:"D:xampphtdocsHOOSBITv3\
\\\cakephpcakelibsview";i:10;s:58:"D:xampphtdocs\\\
\HOOSBITv3cakephpcakelibsviewelements";i:11;s:
64:"D:xampphtdocsHOOSBITv3cakephpcakelibs\\
\\viewelementsemail";i:12;s:69:"D:xampphtdocs\\\
\HOOSBITv3cakephpcakelibsviewelementsemail\
\\\html";i:13;s:69:"D:xampphtdocsHOOSBITv3cakephp\\
\\cakelibsviewelementsemailtext";i:14;s:56:"D:\\\
\xampphtdocsHOOSBITv3cakephpcakelibsview\\\
\errors";i:15;s:57:"D:xampphtdocsHOOSBITv3cakephp\\
\\cakelibsviewhelpers";i:16;s:57:"D:xampphtdocs\\\
\HOOSBITv3cakephpcakelibsviewlayouts";i:17;s:
63:"D:xampphtdocsHOOSBITv3cakephpcakelibs\\
\\viewlayoutsemail";i:18;s:68:"D:xampphtdocsHOOSBIT
v3cakephpcakelibsviewlayoutsemail\\\
\html";i:19;s:68:"D:xampphtdocsHOOSBITv3cakephp\\\
\cakelibsviewlayoutsemailtext";i:20;s:60:"D:\\\
\xampphtdocsHOOSBITv3cakephpcakelibsview\\\
\layoutsjs";i:21;s:61:"D:xampphtdocsHOOSBITv3\\\
\cakephpcakelibsviewlayoutsrss";i:22;s:61:"D:\\\
\xampphtdocsHOOSBITv3cakephpcakelibsview\\\
\layoutsxml";i:23;s:55:"D:xampphtdocsHOOSBITv3\\\
\cakephpcakelibsviewpages";i:24;s:59:"D:xampp\\\
\htdocsHOOSBITv3cakephpcakelibsview\\\
\scaffolds";}s:50:"D:xampphtdocsHOOSBITv3cakephp\\\
\appcontrollers";a:2:{i:0;s:50:"D:xampphtdocsHOOSBIT\\\
\v3cakephpappcontrollers";i:1;s:61:"D:xampphtdocs\\
\\HOOSBITv3cakephpappcontrollerscomponents";}s:
44:"D:xampphtdocsHOOSBITv3cakephpapp\\\
\views";a:16:{i:0;s:44:"D:xampphtdocsHOOSBITv3\\\
\cakephpappviews";i:1;s:53:"D:xampphtdocsHOOSBIT\\\
\v3cakephpappviewselements";i:2;s:59:"D:xampp\\\
\htdocsHOOSBITv3cakephpappviewselements\\\
\email";i:3;s:64:"D:xampphtdocsHOOSBITv3cakephp\\\
\appviewselementsemailhtml";i:4;s:64:"D:xampp\\\
\htdocsHOOSBITv3cakephpappviewselements\\\
\emailtext";i:5;s:51:"D:xampphtdocsHOOSBITv3\\\
\cakephpappviewserrors";i:6;s:52:"D:xampphtdocs\\\
\HOOSBITv3cakephpappviewshelpers";i:7;s:52:"D:\\\
\xampphtdocsHOOSBITv3cakephpappviews\\\
\layouts";i:8;s:58:"D:xampphtdocsHOOSBITv3cakephp\\
\\appviewslayoutsemail";i:9;s:63:"D:xampphtdocs\\\
\HOOSBITv3cakephpappviewslayoutsemail\\\
\html";i:10;s:63:"D:xampphtdocsHOOSBITv3cakephp\\\
\appviewslayoutsemailtext";i:11;s:55:"D:xampp\\\
\htdocsHOOSBITv3cakephpappviewslayouts\\\
\js";i:12;s:56:"D:xampphtdocsHOOSBITv3cakephp\\\
\appviewslayoutsrss";i:13;s:56:"D:xampphtdocs\\\
\HOOSBITv3cakephpappviewslayoutsxml";i:14;s:
50:"D:xampphtdocsHOOSBITv3cakephpappviews\\
\\pages";i:15;s:54:"D:xampphtdocsHOOSBITv3cakephp\\
\\appviewsscaffolds";}s:49:"D:xampphtdocsHOOSBIT\\\
\v3cakephpcakelibsview";a:16:{i:0;s:49:"D:xampp\\\
\htdocsHOOSBITv3cakephpcakelibsview";i:1;s:
58:"D:xampphtdocsHOOSBITv3cakephpcakelibs\\
\\viewelements";i:2;s:64:"D:xampphtdocsHOOSBITv3\\\
\cakephpcakelibsviewelementsemail";i:

how can i find out cakephp cache work fine?

2011-04-11 Thread hoss7
i have edit my core:

define('CACHE_CHECK', true);

and in my Controller:

class PagesController extends Controller {

var $name = 'Pages';
var $helpers = array('Cache','Html','Session');
var $cacheAction = true;



function home(){

}
function aboutfa(){

}

}
how can i find out cakephp cache work fine?
and how can i find out what is in my cache now?
and i am seach in group some user say for use cache we must setting
debug to 0,we need this or not?

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: USE Internationalization & Localization

2011-04-01 Thread hoss7
thanks daniel

On Apr 1, 6:45 pm, "Daniel S. Reichenbach" 
wrote:
> Greetings,
>
> > i am new in cakephp,how can user choice language?
>
> As a primer, read this 
> one:http://book.cakephp.org/view/1228/Internationalization-Localization
>
> and this question has a nice summary of what to 
> do.http://ask.cakephp.org/questions/view/multilanguage_site_in_cakephp
>
> And if you are looking for a starters guide, then the Bakery has you
> covered:
>
> http://bakery.cakephp.org/articles/sky_l3ppard/2010/01/05/smoothtrans...
>
> WkR,
> Daniel

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: USE Internationalization & Localization

2011-04-01 Thread hoss7
i am new in cakephp,how can user choice language?
if i have website with default language :English ; how can user choice
another language for xample farsi?
and how can i find out user language choice in controls and view and
model?

On Apr 1, 5:05 pm, Ryan Schmidt  wrote:
> On Apr 1, 2011, at 07:48, hoss7 wrote:
>
> > how can i call file from local folder from url?
>
> > for example i have :
>
> >    /app/locale/eng/LC_MESSAGES/default.po (English)
> >    /app/locale/fa/LC_MESSAGES/default.po (farsi)
>
> > how can i create url for call other po files?
>
> What do you mean, URL? You're not going to be accessing .po files directly in 
> a browser.

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


USE Internationalization & Localization

2011-04-01 Thread hoss7
how can i call file from local folder from url?

for example i have :

/app/locale/eng/LC_MESSAGES/default.po (English)
/app/locale/fa/LC_MESSAGES/default.po (farsi)

how can i create url for call other po files?

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: virtual subdomain and cakephp

2011-03-16 Thread hoss7
can you explain more about that config and how can cakephp menage
this?
if i want create more subdomain how can i tell apache and cakephp to
menage all subdomain
note:i dont create subdomain,cakephp create subdomain for my user,how
can i tell apache and cake to menage this?

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


virtual subdomain and cakephp

2011-03-16 Thread hoss7
i want use virtual subdomain like this:

example: eee.domain.com

how can i config cakephp to work with this subdomain,and how can i
config apache to work with this subdomain,
and how can i config my localhost server(i am use xampp)?

i am new in cake and apache.
my problem like this:
http://groups.google.com/group/cake-php/browse_thread/thread/d3e72b36102b484d/dc504516706d00f6?lnk=gst&q=subdomain#dc504516706d00f6

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


why we use Caching in cakephp?

2011-02-08 Thread hoss7
i am new in cake,tell me why we use Caching in cakephp? and how can i
use it?

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


use some source code with cakephp(this is my problem in 1 year)

2011-02-05 Thread hoss7
i have this jcart (http://conceptlogic.com/jcart/)(ajax shopping cart)
but i am new in cakephp and want use this cart in cakephp

i have 3 questions?

1.how can i edit this javascript file and edit path of file?:
for example:
var JCART = (function() {

// This script sends Ajax requests to config-loader.php and
relay.php using the path below
// We assume these files are in the 'jcart' directory, one level
above this script
// Edit as needed if using a different directory structure
var path = 'jcart',
container = $('#jcart'),
token = $('[name=jcartToken]').val(),
tip = $('#jcart-tooltip');

var config = (function() {
var config = null;
$.ajax({
url: path + '/config-loader.php',
data: {
"ajax": "true"
},
dataType: 'json',
async: false,
success: function(response) {
config = response;
},
error: function() {
alert('Ajax error: Edit the path in 
jcart.js to fix.');
}
});
return config;
}());

2.how can i edit some line in jcart.php?:

for example i have $_SESSION['jcartToken'] and
$_POST['jcartUpdate'],how can i menage this line with cakephp

3. how can i import this file in some page in cakephp?

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


some error with ARO/ACO ACL

2011-02-01 Thread hoss7
i use cakephp(v1.3.7) ACL i have this error:

Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in
permissions check. Node references:
Aro: Array
(
[User] => Array
(
[id] => 1
[username] => root
[group_id] => 1
[created] => 2011-02-01 07:19:20
[modified] => 2011-02-01 07:50:36
)

)

Aco: Pages/display [CORE\cake\libs\controller\components\acl.php, line
273]
Code | Context


if (empty($aroPath) || empty($acoPath)) {
trigger_error(__("DbAcl::check() - Failed ARO/ACO node lookup in
permissions check. Node references:\nAro: ", true) . print_r($aro,
true) . "\nAco: " . print_r($aco, true), E_USER_WARNING);

$aro = array(
"User" => array(
"id" => "1",
"username" => "root",
"group_id" => "1",
"created" => "2011-02-01 07:19:20",
"modified" => "2011-02-01 07:50:36"
)
)
$aco = "Pages/display"
$action = "*"
$permKeys = array(
"_create",
"_read",
"_update",
"_delete"
)
$aroPath = array(
array(
"Aro" => array()
),
array(
"Aro" => array()
)
)
$acoPath = false

DbAcl::check() - CORE\cake\libs\controller\components\acl.php, line
273
AclComponent::check() - CORE\cake\libs\controller\components\acl.php,
line 92
AuthComponent::isAuthorized() - CORE\cake\libs\controller\components
\auth.php, line 527
AuthComponent::startup() - CORE\cake\libs\controller\components
\auth.php, line 445
Component::triggerCallback() - CORE\cake\libs\controller
\component.php, line 186
Controller::startupProcess() - CORE\cake\libs\controller
\controller.php, line 523
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 187
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
[main] - APP\webroot\index.php, line 83

Warning (2): Cannot modify header information - headers already sent
by (output started at D:\xampp\htdocs\cakeacl\cake\libs\debugger.php:
673) [CORE\cake\libs\controller\controller.php, line 742]
Code | Context

$status = "Location: http://localhost/cakeacl/users/login";

header - [internal], line ??
Controller::header() - CORE\cake\libs\controller\controller.php, line
742
Controller::redirect() - CORE\cake\libs\controller\controller.php,
line 721
AuthComponent::startup() - CORE\cake\libs\controller\components
\auth.php, line 450
Component::triggerCallback() - CORE\cake\libs\controller
\component.php, line 186
Controller::startupProcess() - CORE\cake\libs\controller
\controller.php, line 523
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 187
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
[main] - APP\webroot\index.php, line 83

how can i fix it?

-- 
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...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: send email with attach

2010-12-03 Thread hoss7
thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


send email with attach

2010-11-29 Thread hoss7
hi
i want send email with attach file in cakephp what i am must to do?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: Multi-Language content page

2010-11-25 Thread hoss7
i am read,but i cant understand this:
It's a good idea to serve up public content available in multiple
languages from a unique url - this makes it easy for users (and search
engines) to find what they're looking for in the language they are
expecting. There are several ways to do this, it can be by using
language specific subdomains (en.example.com, fra.example.com, etc.),
or using a prefix to the url such as is done with this application.
You may also wish to glean the information from the browser’s user-
agent, among other things.

how can i create links for do this, and i am new in cakephp and i
think i am in wrong way for start and create this in my project step
by step.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: Multi-Language content page

2010-11-25 Thread hoss7
if i want use http://localhost/en/post/index what i am must to do?

and you say :$data = $this->Post->find('all');
in post table i must have example : lang_type and if user select this
url i must load all post content with lang_type='en' is this code
work?
and how can i change all links,for example:
my default  language is :en
and when user select this link www.example.com/fr i want all link
change to this www.example.com/fr/post and www.example.com/fr/image
and when user select www.example.com all link www.example.com//post
and www.example.com/image with default language

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


some ACL problem

2010-11-25 Thread hoss7
i have install acos,aros,aros-_acos table and add some code from
http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application
step by step,by i have error:
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in
permissions check.  Node references:
Aro: Array
(
[User] => Array
(
[id] => 1
[username] => test
[group_id] => 1
[created] => 2010-11-25 09:06:17
[modified] => 2010-11-25 09:06:17
)

)

Aco: /Products/index [CORE\cake\libs\controller\components\acl.php,
line 273]
Code | Context


if (empty($aroPath) || empty($acoPath)) {
trigger_error(__("DbAcl::check() - Failed ARO/ACO node
lookup in permissions check.  Node references:\nAro: ", true) .
print_r($aro, true) . "\nAco: " . print_r($aco, true),
E_USER_WARNING);

$aro=   array(
"User" => array(
"id" => "1",
"username" => "test",
"group_id" => "1",
"created" => "2010-11-25 09:06:17",
"modified" => "2010-11-25 09:06:17"
)
)
$aco=   "/Products/index"
$action =   "*"
$permKeys   =   array(
"_create",
"_read",
"_update",
"_delete"
)
$aroPath=   array(
array(
"Aro" => array()
)
)
$acoPath=   false

DbAcl::check() - CORE\cake\libs\controller\components\acl.php, line
273
AclComponent::check() - CORE\cake\libs\controller\components\acl.php,
line 92
AuthComponent::isAuthorized() - CORE\cake\libs\controller\components
\auth.php, line 527
AuthComponent::startup() - CORE\cake\libs\controller\components
\auth.php, line 445
Component::triggerCallback() - CORE\cake\libs\controller
\component.php, line 186
Controller::startupProcess() - CORE\cake\libs\controller
\controller.php, line 527
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 187
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
[main] - APP\webroot\index.php, line 83

Warning (2): Cannot modify header information - headers already sent
by (output started at D:\xampp\htdocs\ceramtest\www\cake\libs
\debugger.php:673) [CORE\cake\libs\controller\controller.php, line
746]
Code | Context

$status =   "Location: http://localhost/ceramtest/www/";

header - [internal], line ??
Controller::header() - CORE\cake\libs\controller\controller.php, line
746
Controller::redirect() - CORE\cake\libs\controller\controller.php,
line 725
AuthComponent::startup() - CORE\cake\libs\controller\components
\auth.php, line 450
Component::triggerCallback() - CORE\cake\libs\controller
\component.php, line 186
Controller::startupProcess() - CORE\cake\libs\controller
\controller.php, line 527
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 187
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
[main] - APP\webroot\index.php, line 83


i am test with admin user,but i have error,and i cant underetand how
can i create permissions for
groups

can i read all permissions from database or i must create all
permissions link this
function initDB() {
$group =& $this->User->Group;
//Allow admins to everything
$group->id = 1;
$this->Acl->allow($group, 'controllers');

//allow managers to posts and widgets
$group->id = 2;
$this->Acl->deny($group, 'controllers');
$this->Acl->allow($group, 'controllers/Posts');
$this->Acl->allow($group, 'controllers/Widgets');

//allow users to only add and edit on posts and widgets
$group->id = 3;
$this->Acl->deny($group, 'controllers');
$this->Acl->allow($group, 'controllers/Posts/add');
$this->Acl->allow($group, 'controllers/Posts/edit');
$this->Acl->allow($group, 'controllers/Widgets/add');
$this->Acl->allow($group, 'controllers/Widgets/edit');
//we add an exit to avoid an ugly "missing views" error 
message
echo "all done";
exit;
}

where is my problem?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: Multi-Language content page

2010-11-24 Thread hoss7
i cant understand this language content only for some text or can i
use for show some text for link?
i want all text load from database but all link text load from po file
or something like that?
and how can i set default  language?
i am confuse now for what i am must to do.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: Multi-Language content page

2010-11-24 Thread hoss7
how can i read url for select one language content from database?

http://localhost/en/post/index
or
http://localhost/post/index/en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Multi-Language content page

2010-11-24 Thread hoss7
i want use this
http://bakery.cakephp.org/articles/p0windah/2007/09/12/p28n-the-top-to-bottom-persistent-internationalization-tutorial

for create Multi-Language website,how can i manage page for show some
content for some language?

this content is in database

is better way for create Multi-Language website?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: some acl and auth problem

2010-11-24 Thread hoss7
thank you,i am try this

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


some acl and auth problem

2010-11-22 Thread hoss7
i am new in cakephp ,and i want use ,user and group and permation
system,but i cant find out how can i install cakephp acl and auth for
use in my project,i am search internet and all cakephp website but i
cant find how can i use it,i dont want use plugin for solve this
problem, please help me and show me best way

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: use multi lang in cakephp 1.3.*

2010-11-13 Thread hoss7
thank you

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


use multi lang in cakephp 1.3.*

2010-11-12 Thread hoss7
how can i create  multi lang website?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: p28n & multiple languages

2010-10-18 Thread hoss7
i need pro cakephp user idea about better way for multiple languages
i am new in cakephp

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


p28n & multiple languages

2010-10-17 Thread hoss7
can i use p28n
http://bakery.cakephp.org/articles/p0windah/2007/09/12/p28n-the-top-to-bottom-persistent-internationalization-tutorial
in cakephp 1.3.4?
is better idea about multiple languages for cakephp ?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


some Spark Plug plugin problem

2010-10-11 Thread hoss7
i have cakephp 1.3.4
i have this error:

Fatal error: Uncaught exception 'Exception' with message
'User::authsomeLogin() is not implemented!' in D:\xampp\htdocs\ird\www
\app\plugins\spark_plug\controllers\components\authsome.php:81 Stack
trace: #0 D:\xampp\htdocs\ird\www\app\plugins\spark_plug\controllers
\components\authsome.php(196): AuthsomeComponent->login('guest') #1 D:
\xampp\htdocs\ird\www\app\plugins\spark_plug\controllers\components
\authsome.php(148): AuthsomeComponent->__useGuestAccount() #2 D:\xampp
\htdocs\ird\www\app\plugins\spark_plug\controllers\components
\authsome.php(60): AuthsomeComponent->__getActiveUser() #3 D:\xampp
\htdocs\ird\www\app\plugins\spark_plug\config\config.php(71):
AuthsomeComponent->get() #4 D:\xampp\htdocs\ird\www\app
\app_controller.php(19): SparkPlugIt(Object(SearchController)) #5 D:
\xampp\htdocs\ird\www\cake\libs\controller\controller.php(526):
AppController->beforeFilter() #6 D:\xampp\htdocs\ird\www\cake
\dispatcher.php(187): Controller->startupProcess() #7 D:\xampp\htdocs
\ird\www\cake\dispatcher.php(171): Dispatcher->_invoke(Obje in D:\xampp
\htdocs\ird\www\app\plugins\spark_plug\controllers\components
\authsome.php on line 81


why?

when i am create some permation for guest

some info example:

in SearchController i have:

var $uses = array('Usercat', 'Subcat', 'Cat', 'Ostan',
'Shahr','User','UserGroup');


function index() {
.
.
.

}
when i use this controller when user login,i can see page,but guest
user i have error

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: Convert Text to Images to Protect your Email from Search

2010-10-10 Thread hoss7
yes but i am new in cake,can you convert this code to helper

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: Convert Text to Images to Protect your Email from Search

2010-10-09 Thread hoss7
i am create this test code:



but i cant convert to cakephp helper,please help me

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: Convert Text to Images to Protect your Email from Search

2010-10-08 Thread hoss7
thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Convert Text to Images to Protect your Email from Search

2010-10-08 Thread hoss7
i need some helper for convert email to image,
i am new in cakephp.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: some helper problem

2010-10-06 Thread hoss7
thanks tilen

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


some helper problem

2010-10-06 Thread hoss7
i have this:
class SubcatHelper extends Helper {



function find($id){

$subcat = $this->Subcat->Cat->find('all',array('conditions' =>
array('Subcat.status' => 1,'Subcat.id'=>2)));

return $subcat;

}


}

in SubcatsController this code

$usercats = $this->Subcat->Cat->find('all',array(
'conditions' => array(
'Cat.status' => 1
)));

work but in subcathelper i have this error

Notice (8): Undefined property: SubcatHelper::$Subcat [APP\views
\helpers\subcat.php, line 8]
Code | Context

function find($id){



$subcat = $this->Subcat->Cat->find('all',array('conditions' =>
array('Cat.status' => 1)));

$id =   2

SubcatHelper::find() - APP\views\helpers\subcat.php, line 8
include - APP\plugins\spark_plug\views\users\index.ctp, line 29
View::_render() - CORE\cake\libs\view\view.php, line 723
View::render() - CORE\cake\libs\view\view.php, line 419
Controller::render() - CORE\cake\libs\controller\controller.php, line
913
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 207
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
[main] - APP\webroot\index.php, line 83

Notice (8): Trying to get property of non-object [APP\views\helpers
\subcat.php, line 8]
Code | Context

function find($id){



$subcat = $this->Subcat->Cat->find('all',array('conditions' =>
array('Cat.status' => 1)));

$id =   2

SubcatHelper::find() - APP\views\helpers\subcat.php, line 8
include - APP\plugins\spark_plug\views\users\index.ctp, line 29
View::_render() - CORE\cake\libs\view\view.php, line 723
View::render() - CORE\cake\libs\view\view.php, line 419
Controller::render() - CORE\cake\libs\controller\controller.php, line
913
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 207
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
[main] - APP\webroot\index.php, line 83


Fatal error: Call to a member function find() on a non-object in D:
\xampp\htdocs\ird\www\app\views\helpers\subcat.php on line 8


how can i use some function in helper like function in Controller?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: some search problem with many table

2010-10-02 Thread hoss7
i am also use this:
$this->data['Usercat']['subcat_id ='] = 2;

$this->data["User"]["shahr_id"]= 576;

$o = $this->postConditions($this->data);
$reg = $this->Usercat->User->findAllBySubcatId($o);


but i have same error

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: some search problem with many table

2010-10-02 Thread hoss7
this is my sql query:

SELECT
users.username,
users.id
FROM
users
INNER JOIN usercats ON users.id = usercats.user_id
WHERE
users.shahr_id = 576 AND
usercats.subcat_id = 1

i dont understand how can i config this query in other
Controller(SearchController)
help me step by step,i am new in cakephp

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: some search problem with many table

2010-10-01 Thread hoss7
Can i use paginate?,please help me

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


some search problem with many table

2010-10-01 Thread hoss7
i want create some search system:
this is some example:
i want show some user with 'Usercat.subcat_id' =>
2,'User.shahr_id'=>576

in usercat model i have:

var $belongsTo = array(
'User' => array(
'className' => 'User',
'foreignKey' => 'user_id',
'conditions' => '',
'fields' => '',
'order' => ''
));

in User model i have:

var $hasMany = array('Usercat');

now i have SearchController,in SearchController i have:

var $uses = array('Usercat','User');

and in search model i have:

class Search extends AppModel {
var $name = "Search";
var $useTable = false;
}

and in index function in SearchController i have:

$res = $this->Usercat->User->find('all', array('conditions' =>
array('Usercat.subcat_id' => 2,'User.shahr_id'=>576)));

when i am test i have this error:

SQL Error: 1054: Unknown column 'Usercat.subcat_id' in 'where
clause' [CORE\cake\libs\model\datasources\dbo_source.php, line 673]

$out = null;
if ($error) {
trigger_error('' . __('SQL Error:', true) . " {$this->error}", E_USER_WARNING);

$sql=   "SELECT `User`.`id`, `User`.`user_group_id`, `User`.`username`,
`User`.`password`, `User`.`email`, `User`.`phone`, `User`.`mobile`,
`User`.`website`, `User`.`active`, `User`.`first_name`,
`User`.`last_name`, `User`.`ostan_id`, `User`.`shahr_id`,
`User`.`views`, `User`.`sex`, `User`.`coname`, `User`.`coadress`,
`User`.`coid`, `User`.`imagecount`, `User`.`videocount`,
`User`.`exdate`, `User`.`created` FROM `users` AS `User`   WHERE
`Usercat`.`subcat_id` = 2 AND `User`.`shahr_id` = 576   "
$error  =   "1054: Unknown column 'Usercat.subcat_id' in 'where clause'"
$out=   null

Query: SELECT `User`.`id`, `User`.`user_group_id`, `User`.`username`,
`User`.`password`, `User`.`email`, `User`.`phone`, `User`.`mobile`,
`User`.`website`, `User`.`active`, `User`.`first_name`,
`User`.`last_name`, `User`.`ostan_id`, `User`.`shahr_id`,
`User`.`views`, `User`.`sex`, `User`.`coname`, `User`.`coadress`,
`User`.`coid`, `User`.`imagecount`, `User`.`videocount`,
`User`.`exdate`, `User`.`created` FROM `users` AS `User` WHERE
`Usercat`.`subcat_id` = 2 AND `User`.`shahr_id` = 576


1. i want fix this error
2.after i fix this error how can i send data for paginate?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


some ajax drop menu with jquery and cakephp

2010-09-23 Thread hoss7
hi i am new in cakephp and json and ajax in need

menu 1 have category,when user selece category show subcategory in
other menu

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: span in links problem

2010-09-19 Thread hoss7
thank you

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


span in links problem

2010-09-18 Thread hoss7
i want have links like this:
home

but when i use this code:
link(''.'home'.'','/',array('class'=>'active')); ?>

i have this:
home

i want use span in links,i am search in group but i cant find out how
i can do this,i only find
$html->tag('span') but i cant use it.


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: use swf/flash in cakephp

2010-09-16 Thread hoss7
before i am post this message i am search but i cant get my answer

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


use swf/flash in cakephp

2010-09-16 Thread hoss7
i am new in cakephp,i need some best way for use swf/flash in cakephp?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


use swf/flash in cakephp

2010-09-16 Thread hoss7
i am new in cakephp,i need some best way for use swf/flash in cakephp?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


use swf/flash in cakephp

2010-09-16 Thread hoss7
i am new in cakephp,i need some best way for use swf/flash in cakephp?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


use swf/flash in cakephp

2010-09-16 Thread hoss7
i am new in cakephp,i need some best way for use swf/flash in cakephp?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: pageTitle

2010-09-04 Thread hoss7
thank you

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


pageTitle

2010-09-04 Thread hoss7
i want show page title what i am must to do?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


$html->link problem

2010-08-26 Thread hoss7
i want create some link like this:

InformationInformation
text

what is $html->link code?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


some problem with layout

2010-08-23 Thread hoss7
hi

i have some problem with layout.

i have some user login plugin and i want when admin login

layout ='admin'

but i see this error:

Fatal error: Call to a member function link() on a non-object
in D:\xampp\htdocs\ird\www\app\views\layouts\admin.ctp on line 7
and
Undefined variable: javascript [APP\views\layouts\admin.ctp, line 7]

but my admin layout dont have error i test it with other Controller
and i can see admin
layout,but i cant call this layout in this plugin

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


customize error message

2010-08-08 Thread hoss7
how can i customize error message(setflash or flash function)?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


search some duplicate data befor save data problem

2010-08-05 Thread hoss7
i have this array:

Array
(
[Usercat] => Array
(
[subcat_id] => Array
(
[0] => 3
[1] => 1
)

[user_id] => 2
[group_id] => 5
)

)

i want befor save data in usercat table, search usercat table for
duplicate subcat_id with user_id if subcat_id with user_id not exist
store subcat_id with user_id,what i am must to do?

example:
i have subcat_id=1 with user_id=2 in usercat table,now i want only
save subcat_id=3 with user_id=2 in usercat table.

this is my function for save array subcat_id in usercat table in
Usercat Model:

function save($data = null, $validate = true, $fieldList =  array())
{
$return = false;
if (isset($data['Usercat']['subcat_id']) &&
is_array($data['Usercat'] ['subcat_id'])) {
foreach ($data['Usercat']['subcat_id'] as
$subcat) {
$saveData = array(
'user_id' => $data['Usercat']
['user_id'],
'subcat_id' => $subcat,
);
$this->create();
$return = parent::save($saveData); //
here can add some tests ...
}
}elseif (isset($data['Usercat']['subcat_id']) && !
is_array($data['Usercat'] ['subcat_id'])){

 $this->create();
 $return = parent::save($data);
}
return $return;
}

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: some phone validation rule problem

2010-08-04 Thread hoss7
@dan thank you,but i have little problem,when i want save '09' in
table i dont have
'09' i have '9'

if i want user phone number dont start with "09" what i am must to do?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: some phone validation rule problem

2010-08-04 Thread hoss7
if i want user phone number dont start with "09" what i am must to do?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


some phone validation rule problem

2010-08-04 Thread hoss7
my phone number start with "09"

'mobile'=>array(
'rule' => array('phone','09',null),
'message' => 'no'
)

my rule have error , what i am must to do for fix that?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: image watermark plugin

2010-08-02 Thread hoss7
lol

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


notifications plugin

2010-08-02 Thread hoss7
i need some cakephp notifications plugin like facebook or ... ?

example:user add new record to some table,show some alert to admin

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


video plugin

2010-08-02 Thread hoss7
i need some video plugin to get idea, like facebook or youtube

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


image watermark plugin

2010-08-02 Thread hoss7
i need some cakephp image watermark plugin?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: save data problem

2010-07-29 Thread hoss7
thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: save data problem

2010-07-29 Thread hoss7
if i have other problem can i ask you in other time?
can i send you email?
are you in facebook,can you add me (http://www.facebook.com/hhoss)?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: save data problem

2010-07-29 Thread hoss7
thank you,  this function work for me, you are my hero

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


cakephp cron job tutorial

2010-07-29 Thread hoss7
i need cakephp cron job tutorial?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: problem select menu with "optgroups"

2010-07-29 Thread hoss7
thank you,you are my hero, can i ask you one question about my problem
to save data?
if you want help me please see this link:
http://groups.google.com/group/cake-php/t/6749e1ba04af243a

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: save data problem

2010-07-29 Thread hoss7
i have this array and user can choice many subcat:


Array
(
[Usercat] => Array
(
[subcat_id] => Array
(
[0] => 3
[1] => 1
)

[user_id] => 7
)

)

you say i can use this:

function save($data = null, $validate = true, $fieldList = array()) {
  put your code here  <=what code?
  then

  return parrent:: save($data, $validate, $fieldList) ; <= where?
  or
  put parrent:: save(..) into a cycle depending what you want to do.

}

but can you explain more about save function,i think you need more
information about my problem

i have 2 table: 1.subcats 2.usercats this is sql:

CREATE TABLE IF NOT EXISTS `subcats` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `title` varchar(255) COLLATE utf8_persian_ci NOT NULL,
  `status` int(2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci
AUTO_INCREMENT=4 ;

--
-- Dumping data for table `subcats`
--

INSERT INTO `subcats` (`id`, `cat_id`, `title`, `status`) VALUES
(1, 2, 'sub2-1', 0),
(2, 2, 'sub2-2', 0),
(3, 1, 'sub1-1', 0);

-- 

--
-- Table structure for table `usercats`
--

CREATE TABLE IF NOT EXISTS `usercats` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `subcat_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci
AUTO_INCREMENT=11 ;

--
-- Dumping data for table `usercats`
--

INSERT INTO `usercats` (`id`, `user_id`, `subcat_id`) VALUES
(3, 1, 1),
(4, 6, 2),
(10, 7, 1);

and my model:
subcat:
var $hasMany = array(
'Usercat' => array(
'className' => 'Usercat',
'foreignKey' => 'subcat_id',
'dependent' => false,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exclusive' => '',
'finderQuery' => '',
'counterQuery' => ''
)
);

and usercat:

var $belongsTo = array(
'Subcat' => array(
'className' => 'Subcat',
'foreignKey' => 'subcat_id',
'conditions' => '',
'fields' => '',
'order' => ''
)
);

and in my UsercatsController:

function add() {
if (!empty($this->data)) {
$this->Usercat->create();
if ($this->Usercat->save($this->data)) {
$this->Session->setFlash(__('yes', true));
$this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(__('no', true));
}
}else {
$this->Session->setFlash(__('no', true));
$this->redirect(array('controller' => 
'Subcats','action' =>
'usercat'));

}
}
and in usercat view:

i have multiple select for user can choice many values

i want save all values in `usercats` with one user id, i can only save
one value but i want save all value,i think i must create some
function like you say,but i am new in cakephp,please help me step by
step

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: save data problem

2010-07-29 Thread hoss7
@bogdanv can you show me,i am new in cakephp,if you want more
information just aks?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


save data problem

2010-07-29 Thread hoss7
i have this array:

Array
(
[Usercat] => Array
(
[subcat_id] => Array
(
[0] => 3
[1] => 1
)

[user_id] => 7
)

)

if i have subcat array i cant use this for save all data for one user:

$this->Usercat->create();
if ($this->Usercat->save($this->data)) {
$this->Session->setFlash(__('اyes, true));
$this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(__('no', true));
}

and i want save all data for one user,what i am must to do?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: problem select menu with "optgroups"

2010-07-29 Thread hoss7
can you convert $form->select to $form->input in view?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: problem select menu with "optgroups"

2010-07-29 Thread hoss7
@circket you fix my problem,i have litle problem i need like this:

input('field', array('options' => array(1,2,3,4,5),
'empty' => '(choose one)')); ?>

use 'empty' => '(choose one)' in echo $form->select('category_id',
$options); what i am must to do?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: problem select menu with "optgroups"

2010-07-29 Thread hoss7
i have cakephp 1.3.2 i cant use this:
$this->set(compact($options));
i fix my "Undefined variable: options" error with this:
$this->set(compact('options'));

but thank you

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: problem select menu with "optgroups"

2010-07-28 Thread hoss7
i use :

function usercat() {
$usercats = $this->Subcat->Cat->find('all');

$options = array();
 foreach($usercats as $k => $v)
  {
$cat_name = $v['Cat']['title'];

$options[$cat_name] = array();

foreach($v['Subcat'] as $sub_cat)
{
$options[$cat_name][$sub_cat['id']] =
$sub_cat['title'];
}

}

$this->set(compact($options));
}

but i have error:

Undefined variable: options

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: problem select menu with "optgroups"

2010-07-28 Thread hoss7
i am test you code @circket but i have error:

Undefined variable: options

i use you code like this:
in view:
echo $form->select('category_id', $options);

in SubcatsController:
function usercat() {
$usercats = $this->Subcat->Cat->find('all');

$options = array();
foreach($usercats as $k => $v)
{
$cat_name = $v['Cat']['title'];

$options[$cat_name] = array();

foreach($v['Subcat'] as $sub_cat)
{
$options[$cat_name][$sub_cat['id']] =
$sub_cat['title'];
}

}

please read my new information i post befor this post

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: problem select menu with "optgroups"

2010-07-28 Thread hoss7
this is sql:
-- Table structure for table `cats`
--

CREATE TABLE IF NOT EXISTS `cats` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_persian_ci NOT NULL,
  `status` int(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci
AUTO_INCREMENT=4 ;

--
-- Dumping data for table `cats`
--

INSERT INTO `cats` (`id`, `title`, `status`) VALUES
(1, 'cat1', 1),
(2, 'cat2', 1);

-- 

--
-- Table structure for table `subcats`
--

CREATE TABLE IF NOT EXISTS `subcats` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cat_id` int(11) NOT NULL,
  `title` varchar(255) COLLATE utf8_persian_ci NOT NULL,
  `status` int(2) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci
AUTO_INCREMENT=4 ;

--
-- Dumping data for table `subcats`
--

INSERT INTO `subcats` (`id`, `cat_id`, `title`, `status`) VALUES
(1, 2, 'sub2-1', 0),
(2, 2, 'sub2-2', 0),
(3, 1, 'sub1-1', 0);

and i have 2 controller:
subcats_controller
cats_controller

and my model:

subcat:

var $belongsTo = array(
'Cat' => array(
'className' => 'Cat',
'foreignKey' => 'cat_id',
'conditions' => '',
'fields' => '',
'order' => ''
)
);

cat:

var $hasMany = array(
'Subcat' => array(
'className' => 'Subcat',
'foreignKey' => 'cat_id',
'dependent' => false,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exclusive' => '',
'finderQuery' => '',
'counterQuery' => ''
)
);

and in view:
echo $form->input('usercats');

and in subcats_controller:

function usercat() {
$usercats = $this->Subcat->Cat->find('all');
$this->set(compact('usercats'));
}

and i want create this:


sub1-1


sub2-1
sub2-2



i hope this information can help you,to help me

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


Re: problem select menu with "optgroups"

2010-07-28 Thread hoss7
cricket how can i pass this array? (i am new in cakephp)

can you show me?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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



Re: problem select menu with "optgroups"

2010-07-28 Thread hoss7
i use $form->input

but i cant create best 'options'=>$arrayValues for that input.

my field name is usercats and i have this:
$form->input('usercats')

and in SubcatsController i have:
$usercats = $this->Subcat->Cat->find('all');
$this->set(compact('usercats'));

i can load all data but i want create data like this:



sub1-1


sub2-1
sub2-2



Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 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


  1   2   >