Re: swf object in cake

2010-05-20 Thread kangur91
maybe you need this http://code.google.com/p/swfobject/wiki/documentation

iIf you want to get param from url use: $this->params['url']

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: Xhtml tag

2010-04-08 Thread kangur91
It's awesome. 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

To unsubscribe, reply using "remove me" as the subject.


Re: Array Help

2009-12-25 Thread kangur91
If you want to remove key from array, it's simple unset(example
below):

foreach($array as $key => $value) {
if($value == "" || $value == " " || is_null($value)) {
unset($array[$key]);

You can add if($value != null)

use array_reserve function.

I wish, I help 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


Mod rewrite skip

2009-11-08 Thread kangur91

I've got problem. Is a possibility to skip folder in modrewrite? For
example I have folder in /app/webroot/manager/ --> I want to skip
rewrite on manager folder. PS: this folder is on manager.domain.com
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Mod_rewrite No idea

2009-11-03 Thread kangur91

Hi. I've got problem with mod rewrite. When i put my app into remote
server i get

Warning: include(cake/bootstrap.php) [function.include]: failed to
open stream: No such file or directory in /home3/kaczano/public_html/
ajax1/app/webroot/index.php on line 81

I done sudo chmod 777 -R, fur sure. But still didn't work. I have
enabled mod_rewrite on server but I don't have permission to change
AllowOverride All

/ajax1/.htaccess
<->

   RewriteEngine on
   RewriteRule^$ app/webroot/[L]
   RewriteRule(.*) app/webroot/$1 [L]

<->
/ajax1/app/.htaccess


RewriteEngine on
RewriteRule^$webroot/[L]
RewriteRule(.*) webroot/$1[L]
 
<>
 /ajax1/app/webroot/.htaccess


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]


Please help!!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Auto view

2009-10-25 Thread kangur91

Hi guys!. I want to do automatic view redirect. For example for all
actions like "add","delete" layout will be "layout1"(not default)
someone knows how to do that?

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



has many validation

2009-10-21 Thread kangur91

Hello, I've got table with Fields
"Name" and "file_id"

If I add data to the table, should execute validation. And not add to
the table if this 2 fields will repeat.

Anyone knows how make this way validation(two fields together)???
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Select box save data problem

2009-10-20 Thread kangur91

Hey. I just want to save data from select multiply, it's a select:

select('Files.name',$files,null, array
('multiple'=>true,'label'=>'Files:','class'=>'text ui-widget-content
ui-corner-all','style'=>'width: 700px'));
?>

Here data i send to controller:
Array ( [name] => Array ( [0] => cos1.pdf [1] => cos.pdf ) )

if i want to save this data using $this->Model->save($this->data) it
won't work. Because I must to change index number in keys to "name".

Anyone know how to do that?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Helper in Controller

2009-10-16 Thread kangur91

Hi,
I want to put some javascript link to view via controller, because
This Helper loads for every function I have in controller, I want to
load this helper to only one fuction. Here code:


addScript($this->Javascript->link('xhina/
XinhaLoader.js?lang=pl&skin=green-look'));
$view->addScript($this->Javascript->link('xhina/examples/
XinhaConfig'));


}
}
}

?>

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