Save double times on Configure::write('debug', 2);

2014-11-26 Thread baur79
Hi,

every with code is ok?
but on Configure::write('debug', 2); save double times 

is this bug?

-- 
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 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Can cakephp use model unicode field name in it

2014-10-09 Thread baur79
Hi,

here is my situation,
we import *.ods file into mysql with unicode field names

and while we try to read this table in cakephp 
it gives an error


Can cakephp use model unicode field name in it?

thanks in advace

-- 
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 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Friendly ACO names

2013-09-27 Thread baur79
how the Durpal's names look like?

пятница, 27 сентября 2013 г., 1:32:55 UTC+6 пользователь Lincoln Brito 
написал:

 ??

 Em sexta-feira, 30 de agosto de 2013 11h10min57s UTC-3, Lincoln Brito 
 escreveu:

 There is a way to create friendly ACOs names, like Drupal permissions?

 Thanks



-- 
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 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: advanced route with date

2013-07-26 Thread baur79
please any hints

четверг, 25 июля 2013 г., 0:03:11 UTC+6 пользователь baur79 написал:

 Hi,

 how to route

 /valutas/archive/2013/07/24/usd
 /valutas/archive/2013/07/24/eur
 /valutas/archive/2013/07/24
 Router::connect('/valutas/archive/:year/:month/:day/:code', 
 array('controller' = 'valutas', 'action' = 'archiveByday'));


 /valutas/archive/2013/07/usd
 /valutas/archive/2013/07/eur
 /valutas/archive/2013/07
 Router::connect('/valutas/archive/:year/:month/:code', array('controller' 
 = 'valutas', 'action' = 'archiveByMonth'));


 /valutas/archive/2013/usd
 /valutas/archive/2013/eur
 /valutas/archive/2013
 Router::connect('/valutas/archive/:year/:code', array('controller' = 
 'valutas', 'action' = 'archiveByYear'));

 and how to to be with route with no :code


 thanks in advance


-- 
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 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




advanced route with date

2013-07-24 Thread baur79
Hi,

how to route

/valutas/archive/2013/07/24/usd
/valutas/archive/2013/07/24/eur
/valutas/archive/2013/07/24
Router::connect('/valutas/archive/:year/:month/:day/:code', 
array('controller' = 'valutas', 'action' = 'archiveByday'));


/valutas/archive/2013/07/usd
/valutas/archive/2013/07/eur
/valutas/archive/2013/07
Router::connect('/valutas/archive/:year/:month/:code', array('controller' 
= 'valutas', 'action' = 'archiveByMonth'));


/valutas/archive/2013/usd
/valutas/archive/2013/eur
/valutas/archive/2013
Router::connect('/valutas/archive/:year/:code', array('controller' = 
'valutas', 'action' = 'archiveByYear'));

and how to to be with route with no :code


thanks in advance

-- 
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 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




Re: redirect images url from live javascript

2013-07-05 Thread baur79
please any hints?

On Thursday, July 4, 2013 12:46:18 PM UTC+6, baur79 wrote:

 hi,

 i have use the 3rd party jquery ajax javascript 
 it returns me the live code which contain img tags
 as img scr=./images/file.png

 my url is example.com/tickets/
 (controller name is TicketsController.php)

 so img full path became as example.com/tickets/images/file.png
 and gives me error as

 Error: The action images is not defined in controller TicketsController 
 Error: Create TicketsController::images() in file: 
 app/Controller/TicketsController.php. 
 ?php class TicketsController extends AppController { 
  public function images() { 
  }
  } 
 Notice: If you want to customize this error message, create 
 app/View/Errors/missing_action.ctp

 how can i redirect only images url to 
 example.com/ticketstaff/images/file.png
 and place the images in folder 
 app/webroot/ticketstaff/images/








-- 
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 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




Re: redirect images url from live javascript

2013-07-05 Thread baur79
all images return with the relative path as
 img scr=./images/file.png

all i need to redirect 
example.com/tickets/images/file.png
to 
example.com/ticketstaff/images/file.png 

On Friday, July 5, 2013 5:46:35 PM UTC+6, Simon Males wrote:

 Share the code generating the img element.


 On Fri, Jul 5, 2013 at 2:23 PM, baur79 bau...@gmail.com javascript:wrote:

 please any hints?


 On Thursday, July 4, 2013 12:46:18 PM UTC+6, baur79 wrote:

 hi,

 i have use the 3rd party jquery ajax javascript 
 it returns me the live code which contain img tags
 as img scr=./images/file.png

 my url is example.com/tickets/
 (controller name is TicketsController.php)

 so img full path became as 
 example.com/tickets/images/**file.pnghttp://example.com/tickets/images/file.png
 and gives me error as

 Error: The action images is not defined in controller TicketsController 
 Error: Create TicketsController::images() in file: app/Controller/**
 TicketsController.php. 
 ?php class TicketsController extends AppController { 
  public function images() { 
  }
  } 
 Notice: If you want to customize this error message, create 
 app/View/Errors/missing_**action.ctp

 how can i redirect only images url to 
 example.com/ticketstaff/**images/file.pnghttp://example.com/ticketstaff/images/file.png
 and place the images in folder 
 app/webroot/ticketstaff/**images/






  -- 
 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 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+u...@googlegroups.com javascript:.
 To post to this group, send email to cake...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Simon Males 


-- 
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 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




Re: redirect images url from live javascript

2013-07-05 Thread baur79
thanks, but no
the img tag in ajaxed javascript code  which i get from 3rd party site.

On Friday, July 5, 2013 6:09:24 PM UTC+6, advantage+ wrote:

 If you are creating images in emails, or want absolute paths to images you 
 can use the fullBase option:

 echo $this-Html-image(logo.png, array('fullBase' = true));

  

  

 *From:* cake...@googlegroups.com javascript: [mailto:
 cake...@googlegroups.com javascript:] *On Behalf Of *baur79
 *Sent:* Friday, July 05, 2013 9:37 AM
 *To:* cake...@googlegroups.com javascript:
 *Subject:* Re: redirect images url from live javascript

  

 all images return with the relative path as

  img scr=./images/file.png

  

 all i need to redirect 

 example.com/tickets/images/file.png

 to 

 example.com/ticketstaff/images/file.png 


 On Friday, July 5, 2013 5:46:35 PM UTC+6, Simon Males wrote:

 Share the code generating the img element.

  

 On Fri, Jul 5, 2013 at 2:23 PM, baur79 bau...@gmail.com wrote:

 please any hints?



 On Thursday, July 4, 2013 12:46:18 PM UTC+6, baur79 wrote:

 hi,

 i have use the 3rd party jquery ajax javascript 

 it returns me the live code which contain img tags
 as img scr=./images/file.png

 my url is example.com/tickets/
 (controller name is TicketsController.php)

 so img full path became as example.com/tickets/images/file.png
 and gives me error as

 Error: The action images is not defined in controller TicketsController 
 Error: Create TicketsController::images() in file: 
 app/Controller/TicketsController.php. 

 ?php class TicketsController extends AppController { 

  public function images() { 

  }

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

 how can i redirect only images url to 

 example.com/ticketstaff/images/file.png
 and place the images in folder 

 app/webroot/ticketstaff/images/





 -- 
 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 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+u...@googlegroups.com.
 To post to this group, send email to cake...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Simon Males 

 -- 
 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 
 CakePHP group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to cake-php+u...@googlegroups.com javascript:.
 To post to this group, send email to cake...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/cake-php.
 For more options, visit https://groups.google.com/groups/opt_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 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




redirect images url from live javascript

2013-07-04 Thread baur79
hi,

i have use the 3rd party jquery ajax javascript 
it returns me the live code which contain img tags
as img scr=./images/file.png

my url is example.com/tickets/
(controller name is TicketsController.php)

so img full path became as example.com/tickets/images/file.png
and gives me error as

Error: The action images is not defined in controller TicketsController 
Error: Create TicketsController::images() in file: 
app/Controller/TicketsController.php. 
?php class TicketsController extends AppController { 
 public function images() { 
 }
 } 
Notice: If you want to customize this error message, create 
app/View/Errors/missing_action.ctp

how can i redirect only images url to 
example.com/ticketstaff/images/file.png
and place the images in folder 
app/webroot/ticketstaff/images/






-- 
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 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




is cake 3.0 dev ready to use on developmet version for new project

2013-03-15 Thread baur79
Hi,

i plan to start new project.
currently i use cakephp 2.x as well 
but i plan to use cakephp 3.x

i plan to send 2-3 months for this new project and release it after 3 
months 
in this case i think can i use whole new cakephp 3.x for this delevopment 
period, i hope at the end for cakephp 3.x beta version release

so is it ready to use now

thanks in advance


-- 
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 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




use Console Task folder with subfolder

2012-08-21 Thread baur79
how can i run task file from folder
Console\Command\Task\project1

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




Re: Archive old data from model's table

2012-07-26 Thread baur79
i think about it,
but it changes $report['Report']['id'] to  $report[' table_name ']['id'] 
i wanna keep DRY logic in view,


On Thursday, July 26, 2012 1:27:04 PM UTC+6, gloop wrote:

 Dud you try 

1. $this-CakePHPModelName-setSource('table_name');

 gloop

 On Thursday, July 26, 2012 5:57:52 AM UTC+2, baur79 wrote:

 i have high load on table reports

 so my idea to have (to divide) 2 tables
 1 - actual data
 2 - archved data
 with same logic and structure,

 can i manupulate on fly the cakephp Model to read from another table ?
 but to keep model's name as same




 On Wednesday, July 25, 2012 11:59:54 PM UTC+6, Andy Gale wrote:

 On Wed, Jul 25, 2012 at 6:04 PM, baur79 wrote: 
  i have model Report with table reports 
  it contain report of last month. (50 000 records every month) 
  
  please give some suggestions 

 These are called partitions. A quick Google came up with this: 

 https://github.com/deeeki/cakephp-partitionable 

 I haven't tried it but maybe this will help you. 

 -- 
 Andy Gale 
 http://andy-gale.com 
 http://twitter.com/andygale 



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


Archive old data from model's table

2012-07-25 Thread baur79
i have model Report with table reports
it contain report of last month. (50 000 records every month)

how can implement archive the data in another table with the same structure 
and logic.
and manipulate reading in Model.

in my controller i want to (DRY):

function index() {
$reports = $this-Report-find('all');
$this-set('report', $reports);
}

function archive()
//do some manipulation
//$this-Report-table = reportarchives

$reports = $this-Report-find('all');
//but query from archived table
$this-set('report', $reports);
$this-render('index')
}

please give some suggestions


-- 
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: Archive old data from model's table

2012-07-25 Thread baur79
i have high load on table reports

so my idea to have (to divide) 2 tables
1 - actual data
2 - archved data
with same logic and structure,

can i manupulate on fly the cakephp Model to read from another table ?
but to keep model's name as same




On Wednesday, July 25, 2012 11:59:54 PM UTC+6, Andy Gale wrote:

 On Wed, Jul 25, 2012 at 6:04 PM, baur79 bau...@gmail.com wrote: 
  i have model Report with table reports 
  it contain report of last month. (50 000 records every month) 
  
  please give some suggestions 

 These are called partitions. A quick Google came up with this: 

 https://github.com/deeeki/cakephp-partitionable 

 I haven't tried it but maybe this will help you. 

 -- 
 Andy Gale 
 http://andy-gale.com 
 http://twitter.com/andygale 


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


Memcached or Redis

2012-07-04 Thread baur79
Hi,

i plan to implement data caching in my project,
please suggest me, which to use Memcached or Redis
(with simple comments)

thanks in advance

-- 
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: Gearman worker as Console command

2012-06-27 Thread baur79
i'm about how to run function in 
class GrmShell extend  AppShell

public function main() {
 $this-worker = new gearmanworker() 
 $this-worker-addFunction(func, func_my);  
}

public function func_my() {
 // run logic
} 

On Wednesday, June 27, 2012 10:28:04 AM UTC+6, Dr. Tarique Sani wrote:

 On Tue, Jun 26, 2012 at 9:13 PM, baur79 bau...@gmail.com wrote: 
  but how to run the function by 
  $worker-addFunction(func, func_my); 

 Something like 

 $this-worker = new gearmanworker() 

 then 

 $this-worker-addFunction(func, func_my); 

 Of course presuming that somewhere you have already added the servers 

 Tarique 

 -- 
 = 
 PHP for E-Biz: http://sanisoft.com 
 = 


-- 
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: Gearman worker as Console command

2012-06-27 Thread baur79
gearman working good outside of cakephp as plan PHP
but my need is to use in cakephp shell, so to use ORM of cakephp models

On Wednesday, June 27, 2012 3:22:08 PM UTC+6, Dr. Tarique Sani wrote:

 On Wed, Jun 27, 2012 at 1:05 PM, baur79 bau...@gmail.com wrote:
  i'm about how to run function in
  class GrmShell extend  AppShell
 
  public function main() {
   $this-worker = new gearmanworker()
   $this-worker-addFunction(func, func_my);
  }
 
  public function func_my() {
   // run logic
  }
 

 Ummm I have lost you here... You have to start the worker and let it 
 run.

 When ever a worker receives a job it will run.

 Have you tried running gearman examples without cakePHP?

 Tarique

 -- 
 =
 PHP for E-Biz: http://sanisoft.com
 =


On Wednesday, June 27, 2012 3:22:08 PM UTC+6, Dr. Tarique Sani wrote:

 On Wed, Jun 27, 2012 at 1:05 PM, baur79 bau...@gmail.com wrote:
  i'm about how to run function in
  class GrmShell extend  AppShell
 
  public function main() {
   $this-worker = new gearmanworker()
   $this-worker-addFunction(func, func_my);
  }
 
  public function func_my() {
   // run logic
  }
 

 Ummm I have lost you here... You have to start the worker and let it 
 run.

 When ever a worker receives a job it will run.

 Have you tried running gearman examples without cakePHP?

 Tarique

 -- 
 =
 PHP for E-Biz: http://sanisoft.com
 =


On Wednesday, June 27, 2012 3:22:08 PM UTC+6, Dr. Tarique Sani wrote:

 On Wed, Jun 27, 2012 at 1:05 PM, baur79 bau...@gmail.com wrote:
  i'm about how to run function in
  class GrmShell extend  AppShell
 
  public function main() {
   $this-worker = new gearmanworker()
   $this-worker-addFunction(func, func_my);
  }
 
  public function func_my() {
   // run logic
  }
 

 Ummm I have lost you here... You have to start the worker and let it 
 run.

 When ever a worker receives a job it will run.

 Have you tried running gearman examples without cakePHP?

 Tarique

 -- 
 =
 PHP for E-Biz: http://sanisoft.com
 =



-- 
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: Gearman worker as Console command

2012-06-26 Thread baur79
but how to run the function by 
$worker-addFunction(func, func_my);


On Tuesday, June 26, 2012 6:11:56 PM UTC+6, Dr. Tarique Sani wrote:

 Yes it is possible to use a shell as a worker. Just create the shell 
 start and forget. Also do not try to do a lot in the worker - use your 
 models for that 

 HTH 
 Tarique 



 On Mon, Jun 25, 2012 at 9:47 PM, baur79 bau...@gmail.com wrote: 
  Hi, 
  
  is it possable to use Console/cake some_command as Gearman Worker 
  please suggest some idea? 
  
  thanks in advance 
  
  -- 
  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 



 -- 
 = 
 PHP for E-Biz: http://sanisoft.com 
 = 


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


Gearman worker as Console command

2012-06-25 Thread baur79
Hi,

is it possable to use Console/cake some_command as Gearman Worker
please suggest some idea?

thanks in advance

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


forwarding user to dashboard after login by prefix

2012-05-23 Thread baur79
Hi 
i have prefixes like admin, student  
and i need to use prefixed dashboards (/admin/users/dashboard, 
/student/users/dashboard)
here my working code

AppController.php

function beforeFilter() {
$this-__checkAuth();
$this-layout = $this-__setLayout();
}

function __checkAuth() {
$this-Auth-authorize = array('Actions' = array('actionPath' = 
'controllers'));
$this-Auth-loginAction = '/users/login';
$this-Auth-logoutRedirect = array('controller' = 'users', 
'action' = 'login');
$this-Auth-loginRedirect = '/users/dashboard';
$this-Auth-redirect = false;

$loggeduser = $this-User-findById($this-Auth-user('id'));
$this-Session-write('loggeduser', $loggeduser);

}


UsersController.php

public function dashboard() {
$this-layout = 'user';

$prefixes = Configure::read('Routing.prefixes');
$loggeduser = $this-Session-read('loggeduser');
if (in_array($loggeduser['Group']['name'], $prefixes)) {
$this-redirect('/'.$loggeduser['Group']['name'].'/users/dashboard');
}
}


is it ok? or you suggest to use another logic

thanks in advance
Baurzhan

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


common ACl auth in subdomains

2012-04-19 Thread baur79
Hi,
i have working project,
how can implement common ACl auth to subdomain project
the database is also common

any suggestions?

thanks in advance

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


[ACL] Disable create new aro item for user while create new user (as requester)

2012-03-24 Thread baur79
Hi,
i have the working ACL cakephp app (group based ACL)
i have users in group and make them ACL group-based

every time a register new user it creates new ARO for user
how can disable to creation in aro table, cause it make the trash rows 
(60 000 user = 60 rows)

user model
public $actsAs = array('Acl' = array('type' = 'requester'));

group model 
public $actsAs = array('Acl' = array('type' = 'requester'));


thanks in advance

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


ACL warning while update user data

2012-03-24 Thread baur79
Hi,

i have weird warning in 2.1
while i try to function change password for user
current user already belong to Group.3

there is no problem with logging, (ACL working fine)

AclNode::node() - Couldn#039;t find Aco node identified by Array ( 
[Aco0.model] = Group 
[Aco0.foreign_key] = 3 
) 

Error: An Internal Error Has Occurred.

Stack Trace
CORE\Cake\Model\Behavior\AclBehavior.php line 88 → AclNode-node(array)
CORE\Cake\Model\Behavior\AclBehavior.php line 106 → AclBehavior-node(User, 
array, string)

-- 
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: Jake source files

2011-06-05 Thread baur79
please
is there anyone who has it,

or
can somebody explain me the logic,
how to integrate cakephp to working joomla

On Jun 5, 7:22 pm, Larry E. Masters php...@gmail.com wrote:
 Jake is a project using CakePHP/Joomla together it has been around for a
 while. I do not know where it is.

 --
 Larry E. Masters

 On Sun, Jun 5, 2011 at 6:24 AM, Tilen Majerle tilen.maje...@gmail.comwrote:









  he was probaby thinking for CAKE...or if not...then he fail with group :)
  --
  Lep pozdrav, Tilen Majerle
 http://majerle.eu

  2011/6/5 Jens Dittrich jdittr...@gmail.com

  Who/What is JAKE?

   --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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
  athttp://groups.google.com/group/cake-php

   --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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
  athttp://groups.google.com/group/cake-php

 --
 Larry E. Masters

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


Jake source files

2011-06-04 Thread baur79
Hi, everyone

i can't download JAKE sources, cause all links are dead

can anybody send it to my email
bau...@gmail.com


thanks in advance

Baurzhan
Kazakhstan /Shymkent city

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


.po file for default cake libs translations

2010-12-16 Thread baur79
Hi,

How to add the translations for cake libs files to by default.po file  
for example
- months name
- day's name
- timeAgoInWords

i try to add strings to default.po manually 
but everytime i update it from default.pot (using poedit)
the strings are gone.

please help me to solve it
it will fine to find solution by using separate .po file

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: .po file for default cake libs translations

2010-12-16 Thread baur79
thanks for suggestion, 

but i would like to have solution in this way:
in my app\locale\kaz\LC_MESSAGES
- default.po (templated by default.pot which generate by cake i18n)
- time.po (for cakephp libs file, which contain only time, date 
translations)

i now that i can use the domain solution for making separate files
but it not the way to edit cake\libs\view\helpers\time.php to add domain

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


Model cusstom name

2010-08-05 Thread baur79
Hi,

i need to use LOCALE name for model in view
is it possable to find solution like this

?php
class Officialform extends AppModel {
var $name = 'Officialform';
var $customname = 'Форма';
}
?

and use in view

echo $this-Officialform-customname

or it better to write custom user function for model,

best regards
Baurzhan
Kazakhstan / Shymkent city

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


controller as subdomain

2010-07-03 Thread baur79
Hi,

i have
cat.domain.kz
news.domain.kz
laws.domain.kz


how to implement  controller name as subdomain


thanks for you answers

Baurzhan

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: New User Management Plug-in

2010-02-04 Thread baur79
can we use  it with cake 1.2.x

thanks

On Feb 3, 1:44 pm, jedt jed.tiotu...@gmail.com wrote:
 Hello,

 I'm inviting everyone to try my user management plug-in 
 inhttp://github.com/jedt/spark_plug

 Features

 - Easy to install. This is totally subjective but is one of the main
 features.

 - Multi User Registration/Login. This enables your project to have
 multi-user access. For example you want to write a forum site. This
 plug-in provides below:

  - Registration form - Users have to fill-up the registration form and
 it will send an activation email. After activation the user's password
 is hashed for security.

  - Login Form - The page to login your username and password.

  - Remember me cookie** - Thanks to the authsome component, you can
 just check the remember me checkbox and you will log-in to your site
 immediately.

  - Change password - Users can log-in to your site change your current
 password.

  - Forgot password - When your user forgot his password he can use
 this form to reset it.

 - User dashboard section. When a user logs in it redirects you to the
 dashboard.

 - Simple ACL. Your site's user section is protected. Visitors must
 login to get access to the dashboard.

 Thank you very much!
 Jed

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: Cakephp - ExtJS or YUI!

2009-04-15 Thread baur79

we want to implement advanced js grid,
so before use of Ext JS or YUI!

we ask for advice which is better to use with Cakephp


On Apr 5, 11:54 pm, jmcneese jmcne...@gmail.com wrote:
 i have done a couple projects that are extjs front-ends backed by
 cake.  what exactly are you trying to do?

 On Apr 3, 10:35 pm, baur79 bau...@gmail.com wrote:

  Hi everyone,

  is there any of you have experience to implement this libraries into
  your Cakephp projects.
  we want to implement advanced feather of girds of those libraries.
  please light on us.

  Best regards
  Baurzhan

  Kazakhstan / megahosting.kz
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Tree behaivor show parent name in listing view

2009-04-12 Thread baur79

Hi everybody,

i have standard actAs Tree model,
how to show parent name in listing view
ex:

childer name - parent name - created
childer name - parent name - created
childer name - parent name - created

best regards
Baurzhan
Kazakhstan / Shymkent
www.megahosting.kz

--~--~-~--~~~---~--~~
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 - ExtJS or YUI!

2009-04-04 Thread baur79

Hi everyone,

is there any of you have experience to implement this libraries into
your Cakephp projects.
we want to implement advanced feather of girds of those libraries.
please light on us.

Best regards
Baurzhan

Kazakhstan / megahosting.kz

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



Different roles / different views / one model ?

2008-05-04 Thread baur79

Hi every one !!

i have model contract and
3 types of users  manager / lawyer / broker

each of them have different privileges on this model

for example:
manager can only edit several fields
lawyer can do everything on model
broker can only see and send to by email for review

I think that is not possible to do in one app (even with prefix
routing)
so try to do this in different apps
manager.site.com
lawyer.site.com
broker.site.com

please if you can suggest me easy way, i will be glad for that


Baurzhan
Kazakhstan / Shymkent city


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Different roles / different views / one model ?

2008-05-04 Thread baur79

Hi every one !!

i have model contract and
3 types of users  manager / lawyer / broker

each of them have different privileges on this model

for example:
manager can only edit several fields
lawyer can do everything on model
broker can only see and send to by email for review

I think that is not possible to do in one app (even with prefix
routing)
so try to do this in different apps
manager.site.com
lawyer.site.com
broker.site.com

please if you can suggest me easy way, i will be glad for that


Baurzhan
Kazakhstan / Shymkent city


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Different roles / different views / one model ?

2008-05-04 Thread baur79

i forget to say that the DB will be one for all apps

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---