技術メモ

技術メモ

js

smarty(FuelPHP)でphpタグを利用する

やりたいこと キャッシュを有効にしつつ、cssやjsファイルの変更を確実に反映させる – doop クラスView_Smarty(fuel/packages/parser/classes/view/smarty.php)のメソッドparserの下記1行

スクロール追尾ボタンをつくる

js

スクロール追尾ボタンをつくりたい そこで...sticky https://github.com/garand/sticky When the target element is about to be hidden, the plugin will add the class className to it (and to a wrapper added as its parent), set it to position: fixe…

FuelでAjaxを使う

Ajaxでリクエストを投げて、FuelPHPのコントローラで処理する。 フロント var res_json = $.ajax({ type : 'post', url : '/result/fetch.json', data : JSON.stringify(post_data), // POSTするJSONデータ contentType : 'application/json', dataType : 'j…