예제 #1
0
파일: Test.php 프로젝트: sttt/phery-kohana
 function action_index()
 {
     echo '<html>';
     echo '<head>';
     echo $this->ajax->csrf();
     echo '</head><body>';
     echo HTML::script('javascripts/jquery.js');
     echo HTML::script(Route::get('phery.js')->uri());
     echo Phery::link_to('link', 'remote');
     echo '</body></html>';
 }
예제 #2
0
파일: demo.php 프로젝트: cbsistem/phery
function trigger()
{
    return PheryResponse::factory('div.test')->trigger('test')->jquery('<li/>')->css('backgroundColor', '#0f0')->html('<h1>Dynamically added, its already bound with phery.js AJAX upon creation because of jquery delegate()</h1>' . Phery::link_to('Click me (execute script calling window.location.reload)', 'surprise'))->appendTo('#add');
}